]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
csky: Remove compile warning for CONFIG_SMP
authorGuo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Sun, 19 Oct 2025 10:55:13 +0000 (06:55 -0400)
committerGuo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Mon, 20 Oct 2025 00:01:52 +0000 (20:01 -0400)
When CONFIG_SMP is enabled, there is a compile warning:

arch/csky/kernel/smp.c:242:6: warning: no previous prototype for
'csky_start_secondary' [-Wmissing-prototypes]
  242 | void csky_start_secondary(void)
      |      ^~~~~~~~~~~~~~~~~~~~

Add a similar prototype with csky_start in sections.h.

Signed-off-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
arch/csky/include/asm/sections.h

index 83e82b7c0f6c427a544dc016716ee39ab2bfd265..ee5cdf226a9b11e7a955638f246464ef96266b8a 100644 (file)
@@ -8,5 +8,6 @@
 extern char _start[];
 
 asmlinkage void csky_start(unsigned int unused, void *dtb_start);
+asmlinkage void csky_start_secondary(void);
 
 #endif /* __ASM_SECTIONS_H */