Skip to content

Commit f577cd2

Browse files
geertuglaubitz
authored andcommitted
sh: smp: Fix missing prototypes
arch/sh/kernel/smp.c:173:17: warning: no previous prototype for 'start_secondary' [-Wmissing-prototypes] arch/sh/kernel/smp.c:324:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes] Make start_secondary() static, as it is only used in this file. Include <linux/profile.h> to fix the other warning. There are no users outside this file, so make it static. Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: John Paul Adrian Glaubitz <[email protected]> Link: https://lore.kernel.org/r/6b6b9a84b30ee56f57f409a7550c69d4aece5dc3.1709326528.git.geert+renesas@glider.be Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
1 parent bbea7c8 commit f577cd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/sh/kernel/smp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include <linux/sched/hotplug.h>
2222
#include <linux/atomic.h>
2323
#include <linux/clockchips.h>
24+
#include <linux/profile.h>
25+
2426
#include <asm/processor.h>
2527
#include <asm/mmu_context.h>
2628
#include <asm/smp.h>
@@ -170,7 +172,7 @@ void native_play_dead(void)
170172
}
171173
#endif
172174

173-
asmlinkage void start_secondary(void)
175+
static asmlinkage void start_secondary(void)
174176
{
175177
unsigned int cpu = smp_processor_id();
176178
struct mm_struct *mm = &init_mm;

0 commit comments

Comments
 (0)