]> git.baikalelectronics.ru Git - kernel.git/commit
x86/boot: Fix cmdline_find_option() prototype visibility
authorBorislav Petkov <bp@suse.de>
Tue, 5 Feb 2019 11:05:45 +0000 (12:05 +0100)
committerBorislav Petkov <bp@suse.de>
Wed, 6 Feb 2019 10:41:21 +0000 (11:41 +0100)
commitdb2e089de1579535e8694d94afb0754152073ac8
treefe748a258a609a93c84609a7beb42f21914cc3a0
parent1e672044dadd7cfd19ab0be192d30f8c60e8e7fa
x86/boot: Fix cmdline_find_option() prototype visibility

  6773e6e60c91 ("x86/boot: Build the command line parsing code unconditionally")

enabled building the command line parsing code unconditionally but it
forgot to remove the respective ifdeffery around the prototypes in the
misc.h header, leading to

  arch/x86/boot/compressed/acpi.c: In function ‘get_acpi_rsdp’:
  arch/x86/boot/compressed/acpi.c:37:8: warning: implicit declaration of function \
  ‘cmdline_find_option’ [-Wimplicit-function-declaration]
    ret = cmdline_find_option("acpi_rsdp", val, MAX_ADDR_LEN);
          ^~~~~~~~~~~~~~~~~~~

for configs where neither CONFIG_EARLY_PRINTK nor CONFIG_RANDOMIZE_BASE
was defined.

Drop the ifdeffery in the header too.

Fixes: 6773e6e60c91 ("x86/boot: Build the command line parsing code unconditionally")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Chao Fan <fanc.fnst@cn.fujitsu.com>
Cc: x86@kernel.org
Link: https://lkml.kernel.org/r/5c51daf0.83pQEkvDZILqoSYW%lkp@intel.com
Link: https://lkml.kernel.org/r/20190205131352.GA27396@zn.tnic
arch/x86/boot/compressed/misc.h