Skip to content

Commit a4ac0d2

Browse files
committed
powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING
setup_profiling_timer() is only needed when CONFIG_PROFILING is enabled. Fixes the following W=1 warning when CONFIG_PROFILING=n: linux/arch/powerpc/kernel/smp.c:1638:5: error: no previous prototype for ‘setup_profiling_timer’ Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ff47a95 commit a4ac0d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/powerpc/kernel/smp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,10 +1635,12 @@ void start_secondary(void *unused)
16351635
BUG();
16361636
}
16371637

1638+
#ifdef CONFIG_PROFILING
16381639
int setup_profiling_timer(unsigned int multiplier)
16391640
{
16401641
return 0;
16411642
}
1643+
#endif
16421644

16431645
static void fixup_topology(void)
16441646
{

0 commit comments

Comments
 (0)