Skip to content

Commit ac09c5f

Browse files
committed
x86/boot: Build the command line parsing code unconditionally
Just drop the three-item ifdeffery and build it in unconditionally. Early cmdline parsing is needed more often than not. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: bhe@redhat.com Cc: hpa@zytor.com Cc: indou.takao@jp.fujitsu.com Cc: kasong@redhat.com Cc: keescook@chromium.org Cc: mingo@redhat.com Cc: msys.mizuma@gmail.com Cc: tglx@linutronix.de Cc: x86@kernel.org Link: https://lkml.kernel.org/r/20190130112238.GB18383@zn.tnic
1 parent af0c9af commit ac09c5f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/x86/boot/compressed/cmdline.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include "misc.h"
33

4-
#if CONFIG_EARLY_PRINTK || CONFIG_RANDOMIZE_BASE || CONFIG_X86_5LEVEL
5-
64
static unsigned long fs;
75
static inline void set_fs(unsigned long seg)
86
{
@@ -30,5 +28,3 @@ int cmdline_find_option_bool(const char *option)
3028
{
3129
return __cmdline_find_option_bool(get_cmd_line_ptr(), option);
3230
}
33-
34-
#endif

0 commit comments

Comments
 (0)