x86/crash: correct unused function build error
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.
Suggested-by Baoquan He <[email protected]>
Signed-off-by Eric DeVolder <[email protected]>
Tested-by Paul E. McKenney <[email protected]>
--- arch/x86/kernel/crash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/crash.c +1 -1
@@ -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