Skip to content

Commit a118088

Browse files
geertuglaubitz
authored andcommitted
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>
1 parent c98ca8a commit a118088

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/sh/kernel/smp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,13 @@ void smp_message_recv(unsigned int msg)
322322
}
323323
}
324324

325+
#ifdef CONFIG_PROFILING
325326
/* Not really SMP stuff ... */
326327
int setup_profiling_timer(unsigned int multiplier)
327328
{
328329
return 0;
329330
}
331+
#endif
330332

331333
#ifdef CONFIG_MMU
332334

0 commit comments

Comments
 (0)