Skip to content

Commit 69f8ca8

Browse files
Baoquan Heakpm00
authored andcommitted
x86, kexec: fix the wrong ifdeffery CONFIG_KEXEC
With the current ifdeffery CONFIG_KEXEC, get_cmdline_acpi_rsdp() is only available when kexec_load interface is taken, while kexec_file_load interface can't make use of it. Now change it to CONFIG_KEXEC_CORE. Link: https://lkml.kernel.org/r/20231208073036.7884-6-bhe@redhat.com Signed-off-by: Baoquan He <bhe@redhat.com> Cc: Eric DeVolder <eric_devolder@yahoo.com> Cc: Ignat Korchagin <ignat@cloudflare.com> Cc: kernel test robot <lkp@intel.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent d70c27b commit 69f8ca8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • arch/x86/boot/compressed

arch/x86/boot/compressed/acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static unsigned long get_cmdline_acpi_rsdp(void)
178178
{
179179
unsigned long addr = 0;
180180

181-
#ifdef CONFIG_KEXEC
181+
#ifdef CONFIG_KEXEC_CORE
182182
char val[MAX_ADDR_LEN] = { };
183183
int ret;
184184

0 commit comments

Comments
 (0)