summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic.c
diff options
context:
space:
mode:
authorJaswinder Singh <jaswinder@infradead.org>2008-12-23 21:52:33 +0530
committerIngo Molnar <mingo@elte.hu>2008-12-27 11:30:18 +0100
commitb6b301aa9fba57b114c3a00f5f43abf672bd4ecd (patch)
tree416330b29b40b5dabc9ca898b0d1ddfdc918f526 /arch/x86/kernel/apic.c
parent0b936bfdeb85784b7df132b2c64fb34ad9b11ffa (diff)
downloadblackbird-op-linux-b6b301aa9fba57b114c3a00f5f43abf672bd4ecd.tar.gz
blackbird-op-linux-b6b301aa9fba57b114c3a00f5f43abf672bd4ecd.zip
x86: apic.c x2apic_preenabled and disable_x2apic should be static
Impact: cleanup, reduce kernel size a bit, avoid sparse warning Fixes sparse warning: arch/x86/kernel/apic.c:103:5: warning: symbol 'disable_x2apic' was not declared. Should it be static? Signed-off-by: Jaswinder Singh <jaswinder@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic.c')
-rw-r--r--arch/x86/kernel/apic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c
index 7397911f8478..3a961bd9f619 100644
--- a/arch/x86/kernel/apic.c
+++ b/arch/x86/kernel/apic.c
@@ -97,8 +97,8 @@ __setup("apicpmtimer", setup_apicpmtimer);
#ifdef HAVE_X2APIC
int x2apic;
/* x2apic enabled before OS handover */
-int x2apic_preenabled;
-int disable_x2apic;
+static int x2apic_preenabled;
+static int disable_x2apic;
static __init int setup_nox2apic(char *str)
{
disable_x2apic = 1;
OpenPOWER on IntegriCloud