Skip to content

Commit 074db39

Browse files
anjutsudhakarmpe
authored andcommitted
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 <[email protected]> Reported-by: David Binderman <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 684d984 commit 074db39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/powerpc/perf/imc-pmu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,8 @@ static int ppc_core_imc_cpu_online(unsigned int cpu)
611611

612612
static int ppc_core_imc_cpu_offline(unsigned int cpu)
613613
{
614-
unsigned int ncpu, core_id;
614+
unsigned int core_id;
615+
int ncpu;
615616
struct imc_pmu_ref *ref;
616617

617618
/*

0 commit comments

Comments
 (0)