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 <anju@linux.vnet.ibm.com> Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 684d984 commit 074db39

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎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)