The patch titled Subject: smp: kernel/panic.c - silence warnings has been added to the -mm tree. Its filename is smp-kernel-panicc-silence-warnings.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/smp-kernel-panicc-silence-warnings.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/smp-kernel-panicc-silence-warnings.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: He Ying <heying24@xxxxxxxxxx> Subject: smp: kernel/panic.c - silence warnings We found these warnings in kernel/panic.c by using sparse tool: warning: symbol 'panic_smp_self_stop' was not declared. warning: symbol 'nmi_panic_self_stop' was not declared. warning: symbol 'crash_smp_send_stop' was not declared. To avoid them, add declarations for these three functions in include/linux/smp.h. Link: https://lkml.kernel.org/r/20210316084150.75201-1-heying24@xxxxxxxxxx Signed-off-by: He Ying <heying24@xxxxxxxxxx> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/smp.h | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/include/linux/smp.h~smp-kernel-panicc-silence-warnings +++ a/include/linux/smp.h @@ -51,6 +51,14 @@ int smp_call_function_single(int cpuid, int wait); /* + * Cpus stopping functions in panic. All have default weak definitions. + * Architecture-dependent code may override them. + */ +void panic_smp_self_stop(void); +void nmi_panic_self_stop(struct pt_regs *regs); +void crash_smp_send_stop(void); + +/* * Call a function on all processors */ void on_each_cpu(smp_call_func_t func, void *info, int wait); _ Patches currently in -mm which might be from heying24@xxxxxxxxxx are smp-kernel-panicc-silence-warnings.patch