public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG next-20230818] error: 'prepare_elf_headers' defined but not used
@ 2023-08-18 18:07 Paul E. McKenney
  2023-08-19  2:28 ` [BUG resend " Paul E. McKenney
  0 siblings, 1 reply; 6+ messages in thread
From: Paul E. McKenney @ 2023-08-18 18:07 UTC (permalink / raw)
  To: linux-kernel, linux-next; +Cc: sfr, tglx, mingo, bp, dave.hansen, x86, hpa

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.

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;

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-20  0:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-18 18:07 [BUG next-20230818] error: 'prepare_elf_headers' defined but not used Paul E. McKenney
2023-08-19  2:28 ` [BUG resend " Paul E. McKenney
2023-08-19 13:03   ` Eric DeVolder
2023-08-19 20:51     ` Paul E. McKenney
2023-08-19 13:04   ` Baoquan He
2023-08-19 21:01     ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox