From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425216AbcBRIC3 (ORCPT ); Thu, 18 Feb 2016 03:02:29 -0500 Received: from mail-lf0-f52.google.com ([209.85.215.52]:34285 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424643AbcBRIC2 (ORCPT ); Thu, 18 Feb 2016 03:02:28 -0500 From: Alexander Kuleshov To: Ingo Molnar Cc: Thomas Gleixner , "H . Peter Anvin" , x86@kernel.org, Andy Lutomirski , Borislav Petkov , Alexander Popov , Denys Vlasenko , linux-kernel@vger.kernel.org, Alexander Kuleshov Subject: [PATCH v2] x86/head64: no need to define early_idt_ripmsg only if CONFIG_KALLSYMS=n Date: Thu, 18 Feb 2016 13:58:15 +0600 Message-Id: <1455782295-3877-1-git-send-email-kuleshovmail@gmail.com> X-Mailer: git-send-email 2.7.0.364.g4943984 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have definition of the early_idt_ripmsg which represents string header for the output of the kernel symbols during early exception. But the header with kernel symbols will be printed in a case if the CONFIG_KALLSYMS=y. Signed-off-by: Alexander Kuleshov --- Changelog: v2: commit message fixed and comment added. 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..f93997f 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 /* CONFIG_KALLSYMS */ #endif /* CONFIG_EARLY_PRINTK */ #define NEXT_PAGE(name) \ -- 2.7.0.364.g4943984