diff mbox series

powerpc/perf: Change the data type for the variable 'ncpu' in IMC code

Message ID 1509443520-27106-1-git-send-email-anju@linux.vnet.ibm.com (mailing list archive)
State Accepted
Commit 074db39e00bb0d35cda7de9a4bae3a9b6da557ad
Headers show
Series powerpc/perf: Change the data type for the variable 'ncpu' in IMC code | expand

Commit Message

Anju T Sudhakar Oct. 31, 2017, 9:52 a.m. UTC
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>
---
 arch/powerpc/perf/imc-pmu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Michael Ellerman Jan. 22, 2018, 3:34 a.m. UTC | #1
On Tue, 2017-10-31 at 09:52:00 UTC, Anju T Sudhakar wrote:
> 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>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/074db39e00bb0d35cda7de9a4bae3a

cheers
diff mbox series

Patch

diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/perf/imc-pmu.c
index 8812624..64dae3e 100644
--- a/arch/powerpc/perf/imc-pmu.c
+++ b/arch/powerpc/perf/imc-pmu.c
@@ -597,7 +597,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;
 
 	/*