Skip to content

Commit 6ffc89c

Browse files
jcmvbkbcgregkh
authored andcommitted
xtensa: fix xtensa_pmu_setup prototype
commit 6d65d37 upstream. 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: 25a77b5 ("xtensa/perf: Convert the hotplug notifier to state machine callbacks") Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b86f06e commit 6ffc89c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/xtensa/kernel/perf_event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static struct pmu xtensa_pmu = {
404404
.read = xtensa_pmu_read,
405405
};
406406

407-
static int xtensa_pmu_setup(int cpu)
407+
static int xtensa_pmu_setup(unsigned int cpu)
408408
{
409409
unsigned i;
410410

0 commit comments

Comments
 (0)