[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4a991983-da2e-4fcd-965c-5b65de6700da@paulmck-laptop>
Date: Fri, 18 Aug 2023 19:28:34 -0700
From: "Paul E. McKenney" <paulmck@...nel.org>
To: linux-kernel@...r.kernel.org, linux-next@...r.kernel.org
Cc: sfr@...b.auug.org.au, tglx@...utronix.de, mingo@...hat.com,
bp@...en8.de, dave.hansen@...ux.intel.com, x86@...nel.org,
hpa@...or.com, eric.devolder@...cle.com, sourabhjain@...ux.ibm.com,
hbathini@...ux.ibm.com, bhe@...hat.com
Subject: [BUG resend next-20230818] error: 'prepare_elf_headers' defined but
not used
Hello!
This morning's rcutorture testing on next-20230818 complained about
prepare_elf_headers() being defined but unused on several rcutorture
scenarios. The patch below makes rcutorture happy, but might or might
not be a proper fix.
This is a resend adding a few more people on CC, given a possible
relationship to 9f1f399ca999 ("x86/crash: add x86 crash hotplug support").
Thoughts?
Thanx, Paul
------------------------------------------------------------------------
diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
index 1d0f824559fce..926c39e22387b 100644
--- a/arch/x86/kernel/crash.c
+++ b/arch/x86/kernel/crash.c
@@ -127,7 +127,8 @@ void native_machine_crash_shutdown(struct pt_regs *regs)
crash_save_cpu(regs, safe_smp_processor_id());
}
-#if defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_DUMP)
+#if (defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_DUMP)) && defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC)
+
static int get_nr_ram_ranges_callback(struct resource *res, void *arg)
{
unsigned int *nr_ranges = arg;
Powered by blists - more mailing lists