diff options
author | Andi Kleen <ak@suse.de> | 2006-09-26 04:52:30 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 04:52:30 -0400 |
commit | fe7414a2882c953788af13a7f2c9d570ed8f71c5 (patch) | |
tree | 26a2c63f2d759d6d50cac0030d90a3bafeb9e360 | |
parent | 19f03ffecdb599c1f64113b6dda0a1f143d2bab9 (diff) |
[PATCH] Use BUILD_BUG_ON in apic.c build sanity checking
Makes code a little shorter.
Signed-off-by: Andi Kleen <ak@suse.de>
-rw-r--r-- | arch/x86_64/kernel/apic.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86_64/kernel/apic.c b/arch/x86_64/kernel/apic.c index 20a76f209629..496cd1bd2ae5 100644 --- a/arch/x86_64/kernel/apic.c +++ b/arch/x86_64/kernel/apic.c | |||
@@ -265,8 +265,6 @@ void __init sync_Arb_IDs(void) | |||
265 | | APIC_DM_INIT); | 265 | | APIC_DM_INIT); |
266 | } | 266 | } |
267 | 267 | ||
268 | extern void __error_in_apic_c (void); | ||
269 | |||
270 | /* | 268 | /* |
271 | * An initial setup of the virtual wire mode. | 269 | * An initial setup of the virtual wire mode. |
272 | */ | 270 | */ |
@@ -313,8 +311,7 @@ void __cpuinit setup_local_APIC (void) | |||
313 | 311 | ||
314 | value = apic_read(APIC_LVR); | 312 | value = apic_read(APIC_LVR); |
315 | 313 | ||
316 | if ((SPURIOUS_APIC_VECTOR & 0x0f) != 0x0f) | 314 | BUILD_BUG_ON((SPURIOUS_APIC_VECTOR & 0x0f) != 0x0f); |
317 | __error_in_apic_c(); | ||
318 | 315 | ||
319 | /* | 316 | /* |
320 | * Double-check whether this APIC is really registered. | 317 | * Double-check whether this APIC is really registered. |