Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752906Ab1BNKA1 (ORCPT ); Mon, 14 Feb 2011 05:00:27 -0500 Received: from server103.greatnet.de ([83.133.97.6]:38321 "EHLO server103.greatnet.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752778Ab1BNKAX (ORCPT ); Mon, 14 Feb 2011 05:00:23 -0500 From: Henrik Kretzschmar To: mingo@readhat.com Cc: tglx@linutronix.de, hpa@zytor.com, x86@kernel.org, tj@kernel.org, yinghai@kernel.org, ak@linux.intel.com, robert.richter@amd.com, linux-kernel@vger.kernel.org, henne@nachtwindheim.de Subject: [PATCH 2/6] x86: ifdef enable_IR_x2apic() out Date: Mon, 14 Feb 2011 11:00:08 +0100 Message-Id: <1297677612-12405-2-git-send-email-henne@nachtwindheim.de> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1297677612-12405-1-git-send-email-henne@nachtwindheim.de> References: <1297677612-12405-1-git-send-email-henne@nachtwindheim.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1617 Lines: 53 The only caller of enable_IR_x2apic() is probe_64.c, which is only compiled on x86-64 bit machines. This function causes compilation problems on 32-bit machines with no io-apic enabled, so we remove it from 32s and keep the way it was on 64s. Signed-off-by: Henrik Kretzschmar --- arch/x86/include/asm/apic.h | 2 ++ arch/x86/kernel/apic/apic.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index b8a3484..b1d77e1 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h @@ -216,7 +216,9 @@ static inline void x2apic_force_phys(void) #define x2apic_supported() 0 #endif +#ifdef CONFIG_X86_64 extern void enable_IR_x2apic(void); +#endif extern int get_physical_broadcast(void); diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 306386f..27a7497 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -1467,6 +1467,7 @@ int __init enable_IR(void) return 0; } +#ifdef CONFIG_X86_64 void __init enable_IR_x2apic(void) { unsigned long flags; @@ -1540,7 +1541,6 @@ out: pr_info("Not enabling x2apic, Intr-remapping init failed.\n"); } -#ifdef CONFIG_X86_64 /* * Detect and enable local APICs on non-SMP boards. * Original code written by Keir Fraser. -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/