Skip to contentSkip to conversation

x86/crash: correct unused function build error

PATCH Superseded Eric DeVolder 1 participant 1 message Aug 20, 2023

Subsystems (2)

v1 of 28 Superseded Latest is v28 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/crash: correct unused function build error

In certain config scenarios, an unused-function build error occurs relating to prepare_elf_headers(). Correct the ifdef guarding these functions to eliminate the build error.

---
 arch/x86/kernel/crash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/crash.c +1 -1
index 86d2ca80b9b2..587c7743fd21 100644
@@ -158,7 +158,7 @@ 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_HOTPLUG)
 static int get_nr_ram_ranges_callback(struct resource *res, void *arg)
 {
 	unsigned int *nr_ranges = arg;
Signature · 1 line
2.31.1