summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-07-31 12:37:32 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2020-07-31 14:09:12 -0700
commit6d65d3769d1910379e1cfa61ebf387efc6bfb22c (patch)
tree489837790500f0a5fef95d332902e1daf497e733 /arch/xtensa
parent8824c1af3af28c7b5c16307c1b8c6d842794e4ed (diff)
downloadlinux-6d65d3769d1910379e1cfa61ebf387efc6bfb22c.tar.bz2
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 Cc: stable@vger.kernel.org Fixes: 25a77b55e74c ("xtensa/perf: Convert the hotplug notifier to state machine callbacks") Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/kernel/perf_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/perf_event.c b/arch/xtensa/kernel/perf_event.c
index 99fcd63ce597..a0d05c8598d0 100644
--- a/arch/xtensa/kernel/perf_event.c
+++ b/arch/xtensa/kernel/perf_event.c
@@ -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;