>From dfbd634a1acafb969794fff9ed027bedcfd187ef Mon Sep 17 00:00:00 2001 From: Sean Christopherson Date: Tue, 3 Sep 2024 10:21:49 -0700 Subject: [PATCH 3/3] x86/reboot: Delete CONFIG_SMP=n stub for nmi_shootdown_cpus() Remove the CONFIG_SMP=n implementation of nmi_shootdown_cpus() as all callers invoke nmi_shootdown_cpus() if and only if CONFIG_SMP=y. Keep the unguarded declaration to play nice with using IS_ENABLED(CONFIG_SMP) in if-statements (to avoid #ifdefs); thanks to dead code elimination, all supported compilers will drop the call before linking. No functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kernel/reboot.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index 8c6f6da6ee8e..2c9299394a22 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c @@ -979,11 +979,6 @@ void __noreturn nmi_panic_self_stop(struct pt_regs *regs) } #else /* !CONFIG_SMP */ -void nmi_shootdown_cpus(nmi_shootdown_cb callback) -{ - /* No other CPUs to shoot down */ -} - void run_crash_ipi_callback(struct pt_regs *regs) { } -- 2.47.0.rc1.288.g06298d1525-goog