aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/boot/compressed/cmdline.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/boot/compressed/cmdline.c')
-rw-r--r--arch/x86/boot/compressed/cmdline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/cmdline.c b/arch/x86/boot/compressed/cmdline.c
index cb62f786990d..10f6b1178c68 100644
--- a/arch/x86/boot/compressed/cmdline.c
+++ b/arch/x86/boot/compressed/cmdline.c
@@ -1,5 +1,7 @@
#include "misc.h"
+#ifdef CONFIG_EARLY_PRINTK
+
static unsigned long fs;
static inline void set_fs(unsigned long seg)
{
@@ -19,3 +21,5 @@ int cmdline_find_option_bool(const char *option)
{
return __cmdline_find_option_bool(real_mode->hdr.cmd_line_ptr, option);
}
+
+#endif