summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf
diff options
context:
space:
mode:
authorAnju T Sudhakar <anju@linux.vnet.ibm.com>2017-10-31 15:22:00 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2018-01-19 23:05:01 +1100
commit074db39e00bb0d35cda7de9a4bae3a9b6da557ad (patch)
treec4e7164a2e3ca0ac46171476cfaae0564299f735 /arch/powerpc/perf
parent684d984038aa2b8ec3ab4b9d314257879a3fbfbd (diff)
downloadlinux-0-day-074db39e00bb0d35cda7de9a4bae3a9b6da557ad.tar.gz
linux-0-day-074db39e00bb0d35cda7de9a4bae3a9b6da557ad.tar.xz
powerpc/perf: Change the data type for the variable 'ncpu' in IMC code
Change the data type for the variable 'ncpu' in ppc_core_imc_cpu_offline(), since cpumask_any_but() returns an 'int' value. Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf')
-rw-r--r--arch/powerpc/perf/imc-pmu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/perf/imc-pmu.c
index 9ec7e87056e5b..671aa20d8dd88 100644
--- a/arch/powerpc/perf/imc-pmu.c
+++ b/arch/powerpc/perf/imc-pmu.c
@@ -611,7 +611,8 @@ static int ppc_core_imc_cpu_online(unsigned int cpu)
static int ppc_core_imc_cpu_offline(unsigned int cpu)
{
- unsigned int ncpu, core_id;
+ unsigned int core_id;
+ int ncpu;
struct imc_pmu_ref *ref;
/*