public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v28] x86/crash: correct unused function build error
@ 2023-08-21 18:26 Eric DeVolder
  0 siblings, 0 replies; only message in thread
From: Eric DeVolder @ 2023-08-21 18:26 UTC (permalink / raw)
  To: linux-kernel, linux-s390
  Cc: akpm, mm-commits, ziy, ysato, xin3.li, will, tsi, tsbogend, tj,
	thunder.leizhen, tglx, svens, sourabhjain, sebastian.reichel,
	samitolvanen, rppt, rmk+kernel, peterz, paul.walmsley, paulmck,
	palmer, ojeda, npiggin, ndesaulniers, mpe, mingo, mhiramat,
	masahiroy, linux, linus.walleij, konrad.wilk, kirill.shutemov,
	kernel, keescook, juerg.haefliger, James.Bottomley, hpa, hca,
	hbathini, gregkh, gor, glaubitz, geert, frederic, deller,
	dave.hansen, christophe.leroy, chenhuacai, catalin.marinas, bp,
	borntraeger, boris.ostrovsky, bhe, arnd, ardb, aou,
	anshuman.khandual, agordeev

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 <bhe@redhat.com>
Signed-off-by: Eric DeVolder <eric.devolder@oracle.com>
Tested-by: Paul E. McKenney <paulmck@kernel.org>
---
 arch/x86/kernel/crash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
index 86d2ca80b9b2..587c7743fd21 100644
--- a/arch/x86/kernel/crash.c
+++ b/arch/x86/kernel/crash.c
@@ -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;
-- 
2.31.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-21 18:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-21 18:26 [PATCH v28] x86/crash: correct unused function build error Eric DeVolder

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