* + smp-kernel-panicc-silence-warnings.patch added to -mm tree
@ 2021-03-19 17:45 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-03-19 17:45 UTC (permalink / raw)
To: heying24, hulkci, mm-commits
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@huawei.com>
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@huawei.com
Signed-off-by: He Ying <heying24@huawei.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
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@huawei.com are
smp-kernel-panicc-silence-warnings.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-19 17:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19 17:45 + smp-kernel-panicc-silence-warnings.patch added to -mm tree akpm
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.