* [PATCH] csky: Remove compile warning for CONFIG_SMP
@ 2025-10-19 11:02 guoren
2025-10-19 21:59 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: guoren @ 2025-10-19 11:02 UTC (permalink / raw)
To: guoren; +Cc: linux-csky, linux-kernel, arnd, linux-arch
From: "Guo Ren (Alibaba DAMO Academy)" <guoren@kernel.org>
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>
---
arch/csky/include/asm/sections.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/csky/include/asm/sections.h b/arch/csky/include/asm/sections.h
index 83e82b7c0f6c..ee5cdf226a9b 100644
--- a/arch/csky/include/asm/sections.h
+++ b/arch/csky/include/asm/sections.h
@@ -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 */
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] csky: Remove compile warning for CONFIG_SMP
2025-10-19 11:02 [PATCH] csky: Remove compile warning for CONFIG_SMP guoren
@ 2025-10-19 21:59 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2025-10-19 21:59 UTC (permalink / raw)
To: guoren; +Cc: linux-csky, linux-kernel, arnd, linux-arch
On 10/19/25 4:02 AM, guoren@kernel.org wrote:
> From: "Guo Ren (Alibaba DAMO Academy)" <guoren@kernel.org>
>
> 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>
Thanks.
> ---
> arch/csky/include/asm/sections.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/csky/include/asm/sections.h b/arch/csky/include/asm/sections.h
> index 83e82b7c0f6c..ee5cdf226a9b 100644
> --- a/arch/csky/include/asm/sections.h
> +++ b/arch/csky/include/asm/sections.h
> @@ -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 */
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-19 21:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-19 11:02 [PATCH] csky: Remove compile warning for CONFIG_SMP guoren
2025-10-19 21:59 ` Randy Dunlap
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.