Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Anju T Sudhakar and committed by
Michael Ellerman
074db39e 684d9840

+2 -1
+2 -1
arch/powerpc/perf/imc-pmu.c
··· 611 611 612 612 static int ppc_core_imc_cpu_offline(unsigned int cpu) 613 613 { 614 - unsigned int ncpu, core_id; 614 + unsigned int core_id; 615 + int ncpu; 615 616 struct imc_pmu_ref *ref; 616 617 617 618 /*