From: Eric DeVolder <eric.devolder@oracle.com>
To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Cc: akpm@linux-foundation.org, mm-commits@vger.kernel.org,
ziy@nvidia.com, ysato@users.sourceforge.jp, xin3.li@intel.com,
will@kernel.org, tsi@tuyoix.net, tsbogend@alpha.franken.de,
tj@kernel.org, thunder.leizhen@huawei.com, tglx@linutronix.de,
svens@linux.ibm.com, sourabhjain@linux.ibm.com,
sebastian.reichel@collabora.com, samitolvanen@google.com,
rppt@kernel.org, rmk+kernel@armlinux.org.uk,
peterz@infradead.org, paul.walmsley@sifive.com,
paulmck@kernel.org, palmer@dabbelt.com, ojeda@kernel.org,
npiggin@gmail.com, ndesaulniers@google.com, mpe@ellerman.id.au,
mingo@redhat.com, mhiramat@kernel.org, masahiroy@kernel.org,
linux@armlinux.org.uk, linus.walleij@linaro.org,
konrad.wilk@oracle.com, kirill.shutemov@linux.intel.com,
kernel@xen0n.name, keescook@chromium.org,
juerg.haefliger@canonical.com,
James.Bottomley@HansenPartnership.com, hpa@zytor.com,
hca@linux.ibm.com, hbathini@linux.ibm.com,
gregkh@linuxfoundation.org, gor@linux.ibm.com,
glaubitz@physik.fu-berlin.de, geert@linux-m68k.org,
frederic@kernel.org, deller@gmx.de, dave.hansen@linux.intel.com,
christophe.leroy@csgroup.eu, chenhuacai@kernel.org,
catalin.marinas@arm.com, bp@alien8.de, borntraeger@linux.ibm.com,
boris.ostrovsky@oracle.com, bhe@redhat.com, arnd@arndb.de,
ardb@kernel.org, aou@eecs.berkeley.edu,
anshuman.khandual@arm.com, agordeev@linux.ibm.com
Subject: [PATCH v28] x86/crash: correct unused function build error
Date: Mon, 21 Aug 2023 14:26:44 -0400 [thread overview]
Message-ID: <20230821182644.2143-1-eric.devolder@oracle.com> (raw)
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
reply other threads:[~2023-08-21 18:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230821182644.2143-1-eric.devolder@oracle.com \
--to=eric.devolder@oracle.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=agordeev@linux.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=anshuman.khandual@arm.com \
--cc=aou@eecs.berkeley.edu \
--cc=ardb@kernel.org \
--cc=arnd@arndb.de \
--cc=bhe@redhat.com \
--cc=boris.ostrovsky@oracle.com \
--cc=borntraeger@linux.ibm.com \
--cc=bp@alien8.de \
--cc=catalin.marinas@arm.com \
--cc=chenhuacai@kernel.org \
--cc=christophe.leroy@csgroup.eu \
--cc=dave.hansen@linux.intel.com \
--cc=deller@gmx.de \
--cc=frederic@kernel.org \
--cc=geert@linux-m68k.org \
--cc=glaubitz@physik.fu-berlin.de \
--cc=gor@linux.ibm.com \
--cc=gregkh@linuxfoundation.org \
--cc=hbathini@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=hpa@zytor.com \
--cc=juerg.haefliger@canonical.com \
--cc=keescook@chromium.org \
--cc=kernel@xen0n.name \
--cc=kirill.shutemov@linux.intel.com \
--cc=konrad.wilk@oracle.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=masahiroy@kernel.org \
--cc=mhiramat@kernel.org \
--cc=mingo@redhat.com \
--cc=mm-commits@vger.kernel.org \
--cc=mpe@ellerman.id.au \
--cc=ndesaulniers@google.com \
--cc=npiggin@gmail.com \
--cc=ojeda@kernel.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=rmk+kernel@armlinux.org.uk \
--cc=rppt@kernel.org \
--cc=samitolvanen@google.com \
--cc=sebastian.reichel@collabora.com \
--cc=sourabhjain@linux.ibm.com \
--cc=svens@linux.ibm.com \
--cc=tglx@linutronix.de \
--cc=thunder.leizhen@huawei.com \
--cc=tj@kernel.org \
--cc=tsbogend@alpha.franken.de \
--cc=tsi@tuyoix.net \
--cc=will@kernel.org \
--cc=xin3.li@intel.com \
--cc=ysato@users.sourceforge.jp \
--cc=ziy@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.