Message ID | 1512971917-23851-2-git-send-email-anju@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e7673818d9510043f11502e55afee5a1ad4f8ff7 |
Headers | show |
Series | IMC code clean up and refactoring | expand |
On Monday 11 December 2017 11:28 AM, Anju T Sudhakar wrote: > Remove the global variable 'thread_imc_pmu', since it is not used in the code. Reviewed-by: madhavan Srinivasan <maddy@linux.vnet.ibm.com> Maddy > Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> > --- > arch/powerpc/perf/imc-pmu.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/perf/imc-pmu.c > index 4eb9e2b..ef7f9dd 100644 > --- a/arch/powerpc/perf/imc-pmu.c > +++ b/arch/powerpc/perf/imc-pmu.c > @@ -40,7 +40,6 @@ static struct imc_pmu *core_imc_pmu; > /* Thread IMC data structures and variables */ > > static DEFINE_PER_CPU(u64 *, thread_imc_mem); > -static struct imc_pmu *thread_imc_pmu; > static int thread_imc_mem_size; > > struct imc_pmu *imc_event_to_pmu(struct perf_event *event) > @@ -1263,7 +1262,6 @@ static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent, > return res; > } > > - thread_imc_pmu = pmu_ptr; > break; > default: > return -EINVAL;
On Mon, 2017-12-11 at 05:58:35 UTC, Anju T Sudhakar wrote: > Remove the global variable 'thread_imc_pmu', since it is not used in the code. > > Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> > Reviewed-by: madhavan Srinivasan <maddy@linux.vnet.ibm.com> Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/e7673818d9510043f11502e55afee5 cheers
diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/perf/imc-pmu.c index 4eb9e2b..ef7f9dd 100644 --- a/arch/powerpc/perf/imc-pmu.c +++ b/arch/powerpc/perf/imc-pmu.c @@ -40,7 +40,6 @@ static struct imc_pmu *core_imc_pmu; /* Thread IMC data structures and variables */ static DEFINE_PER_CPU(u64 *, thread_imc_mem); -static struct imc_pmu *thread_imc_pmu; static int thread_imc_mem_size; struct imc_pmu *imc_event_to_pmu(struct perf_event *event) @@ -1263,7 +1262,6 @@ static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent, return res; } - thread_imc_pmu = pmu_ptr; break; default: return -EINVAL;
Remove the global variable 'thread_imc_pmu', since it is not used in the code. Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> --- arch/powerpc/perf/imc-pmu.c | 2 -- 1 file changed, 2 deletions(-)