sh: smp: Protect setup_profiling_timer() by CONFIG_PROFILING
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 13 May 2024 13:20:54 +0000 (15:20 +0200)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Mon, 13 May 2024 13:37:11 +0000 (15:37 +0200)
commita11808815c3599891be12715d57c889d7b280a49
tree14fdf77eb53d0c8a87f6f76b507c837a9ba79de8
parentc98ca8a375b6df243017716faee0916110a08396
sh: smp: Protect setup_profiling_timer() by CONFIG_PROFILING

arch/sh/kernel/smp.c:326:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes]

The function is unconditionally defined in smp.c, but conditionally
declared in <linux/profile.h>.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/effa5eecbd2389c6661974e91bb834db210989ea.1715606232.git.geert+renesas@glider.be
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
arch/sh/kernel/smp.c