[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230821182644.2143-1-eric.devolder@oracle.com>
Date: Mon, 21 Aug 2023 14:26:44 -0400
From: Eric DeVolder <eric.devolder@...cle.com>
To: linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org
Cc: akpm@...ux-foundation.org, mm-commits@...r.kernel.org,
ziy@...dia.com, ysato@...rs.sourceforge.jp, xin3.li@...el.com,
will@...nel.org, tsi@...oix.net, tsbogend@...ha.franken.de,
tj@...nel.org, thunder.leizhen@...wei.com, tglx@...utronix.de,
svens@...ux.ibm.com, sourabhjain@...ux.ibm.com,
sebastian.reichel@...labora.com, samitolvanen@...gle.com,
rppt@...nel.org, rmk+kernel@...linux.org.uk, peterz@...radead.org,
paul.walmsley@...ive.com, paulmck@...nel.org, palmer@...belt.com,
ojeda@...nel.org, npiggin@...il.com, ndesaulniers@...gle.com,
mpe@...erman.id.au, mingo@...hat.com, mhiramat@...nel.org,
masahiroy@...nel.org, linux@...linux.org.uk,
linus.walleij@...aro.org, konrad.wilk@...cle.com,
kirill.shutemov@...ux.intel.com, kernel@...0n.name,
keescook@...omium.org, juerg.haefliger@...onical.com,
James.Bottomley@...senPartnership.com, hpa@...or.com,
hca@...ux.ibm.com, hbathini@...ux.ibm.com,
gregkh@...uxfoundation.org, gor@...ux.ibm.com,
glaubitz@...sik.fu-berlin.de, geert@...ux-m68k.org,
frederic@...nel.org, deller@....de, dave.hansen@...ux.intel.com,
christophe.leroy@...roup.eu, chenhuacai@...nel.org,
catalin.marinas@....com, bp@...en8.de, borntraeger@...ux.ibm.com,
boris.ostrovsky@...cle.com, bhe@...hat.com, arnd@...db.de,
ardb@...nel.org, aou@...s.berkeley.edu, anshuman.khandual@....com,
agordeev@...ux.ibm.com
Subject: [PATCH v28] 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 <bhe@...hat.com>
Signed-off-by: Eric DeVolder <eric.devolder@...cle.com>
Tested-by: Paul E. McKenney <paulmck@...nel.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
Powered by blists - more mailing lists