[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1454163332-27008-1-git-send-email-kuleshovmail@gmail.com>
Date:	Sat, 30 Jan 2016 20:15:32 +0600
From:	Alexander Kuleshov <kuleshovmail@...il.com>
To:	Thomas Gleixner <tglx@...utronix.de>
Cc:	Ingo Molnar <mingo@...hat.com>, "H . Peter Anvin" <hpa@...or.com>,
	Andy Lutomirski <luto@...nel.org>,
	Andrey Ryabinin <ryabinin.a.a@...il.com>,
	Borislav Petkov <bp@...e.de>,
	Alexander Popov <alpopov@...ecurity.com>,
	Denys Vlasenko <dvlasenk@...hat.com>, x86@...nel.org,
	linux-kernel@...r.kernel.org,
	Alexander Kuleshov <kuleshovmail@...il.com>
Subject: [PATCH] x86/head64: define early_idt_ripmsg only if CONFIG_KALLSYMS is enabled
We have definition of the early_idt_ripmsg which represents string header
for the output of the kernel symbols during early exception. But it will
be used only if CONFIG_KALLSYMS is enabled.
Signed-off-by: Alexander Kuleshov <kuleshovmail@...il.com>
---
 arch/x86/kernel/head_64.S | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
index ffdc0e8..c713d94 100644
--- a/arch/x86/kernel/head_64.S
+++ b/arch/x86/kernel/head_64.S
@@ -433,8 +433,10 @@ early_recursion_flag:
 #ifdef CONFIG_EARLY_PRINTK
 early_idt_msg:
 	.asciz "PANIC: early exception %02lx rip %lx:%lx error %lx cr2 %lx\n"
+#ifdef CONFIG_KALLSYMS
 early_idt_ripmsg:
 	.asciz "RIP %s\n"
+#endif
 #endif /* CONFIG_EARLY_PRINTK */
 
 #define NEXT_PAGE(name) \
-- 
2.7.0.25.gfc10eb5
Powered by blists - more mailing lists
 
