Skip to content

Commit 6d65d37

Browse files
committed
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: [email protected] Fixes: 25a77b5 ("xtensa/perf: Convert the hotplug notifier to state machine callbacks") Signed-off-by: Max Filippov <[email protected]>
1 parent 8824c1a commit 6d65d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/xtensa/kernel/perf_event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ static struct pmu xtensa_pmu = {
399399
.read = xtensa_pmu_read,
400400
};
401401

402-
static int xtensa_pmu_setup(int cpu)
402+
static int xtensa_pmu_setup(unsigned int cpu)
403403
{
404404
unsigned i;
405405

0 commit comments

Comments
 (0)