Skip to content

Commit

Permalink
powerpc/perf: Change the data type for the variable 'ncpu' in IMC code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anju T Sudhakar authored and Michael Ellerman committed Jan 19, 2018
1 parent 684d984 commit 074db39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/perf/imc-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 074db39

Please sign in to comment.