Skip to contentSkip to conversation

xtensa: fix xtensa_pmu_setup prototype

PATCH New Max Filippov 1 participant 1 message Jul 31, 2020

Subsystems (3)
lore
Share & tools
lore

Max Filippov

author maintainer
#0 lore raw

PATCH 1/1 xtensa: fix xtensa_pmu_setup prototype

Fix the following build error in configurations with CONFIG_XTENSA_VARIANT_HAVE_PERF_EVENTS=y:

arch/xtensa/kernel/perf_event.c:420:29: error: passing argument 3 of ‘cpuhp_setup_state’ from incompatible pointer type

Fixes 25a77b55e74c ("xtensa/perf: Convert the hotplug notifier to state machine callbacks")
---
 arch/xtensa/kernel/perf_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/xtensa/kernel/perf_event.c +1 -1
index 99fcd63ce597..a0d05c8598d0 100644
@@ -399,7 +399,7 @@ static struct pmu xtensa_pmu = {
 	.read = xtensa_pmu_read,
 };
 
-static int xtensa_pmu_setup(int cpu)
+static int xtensa_pmu_setup(unsigned int cpu)
 {
 	unsigned i;
 
Signature · 1 line
2.20.1