Skip to contentSkip to conversation

csky: Remove compile warning for CONFIG_SMP

PATCH In review [email protected] 2 participants 2 messages Oct 19, 2025

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 csky: Remove compile warning for CONFIG_SMP

From: "Guo Ren (Alibaba DAMO Academy)" <[email protected]>

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.

---
 arch/csky/include/asm/sections.h | 1 +
 1 file changed, 1 insertion(+)
arch/csky/include/asm/sections.h +1 -0
index 83e82b7c0f6c..ee5cdf226a9b 100644
@@ -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 */
Signature · 1 line
2.40.1
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 4 lines · On 10/19/25 4:02 AM, [email protected] wrote:

From: "Guo Ren (Alibaba DAMO Academy)" <[email protected]>

When CONFIG_SMP is enabled, there is a compile warning:

Quoted 8 lines

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.

Thanks.

Quoted 15 lines
---
 arch/csky/include/asm/sections.h | 1 +
 1 file changed, 1 insertion(+)
arch/csky/include/asm/sections.h +1 -0
index 83e82b7c0f6c..ee5cdf226a9b 100644
@@ -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 */
Signature · 1 line
~Randy