Commit e108deb3 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ia32 uniprocessor compile fixes

Fix a couple of things for no-io-apic builds:

- mpparse.c wants BAD_APICID

- mpparse.c (an perhaps others) want Dprintk()
parent 932d934b
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#include <asm/apicdef.h> #include <asm/apicdef.h>
#include <asm/system.h> #include <asm/system.h>
#ifdef CONFIG_X86_LOCAL_APIC
#define APIC_DEBUG 0 #define APIC_DEBUG 0
#if APIC_DEBUG #if APIC_DEBUG
...@@ -17,6 +15,8 @@ ...@@ -17,6 +15,8 @@
#define Dprintk(x...) #define Dprintk(x...)
#endif #endif
#ifdef CONFIG_X86_LOCAL_APIC
/* /*
* Basic functions accessing APICs. * Basic functions accessing APICs.
*/ */
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#endif /* CONFIG_CLUSTERED_APIC */ #endif /* CONFIG_CLUSTERED_APIC */
#endif #endif
#define BAD_APICID 0xFFu
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
...@@ -65,7 +66,6 @@ extern void zap_low_mappings (void); ...@@ -65,7 +66,6 @@ extern void zap_low_mappings (void);
* the real APIC ID <-> CPU # mapping. * the real APIC ID <-> CPU # mapping.
*/ */
#define MAX_APICID 256 #define MAX_APICID 256
#define BAD_APICID 0xFFu
extern volatile int cpu_to_physical_apicid[NR_CPUS]; extern volatile int cpu_to_physical_apicid[NR_CPUS];
extern volatile int physical_apicid_to_cpu[MAX_APICID]; extern volatile int physical_apicid_to_cpu[MAX_APICID];
extern volatile int cpu_to_logical_apicid[NR_CPUS]; extern volatile int cpu_to_logical_apicid[NR_CPUS];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment