OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19f03ff
)
[PATCH] Use BUILD_BUG_ON in apic.c build sanity checking
author
Andi Kleen
<ak@suse.de>
Tue, 26 Sep 2006 08:52:30 +0000
(10:52 +0200)
committer
Andi Kleen
<andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:30 +0000
(10:52 +0200)
Makes code a little shorter.
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/apic.c
patch
|
blob
|
history
diff --git
a/arch/x86_64/kernel/apic.c
b/arch/x86_64/kernel/apic.c
index
20a76f2
..
496cd1b
100644
(file)
--- a/
arch/x86_64/kernel/apic.c
+++ b/
arch/x86_64/kernel/apic.c
@@
-265,8
+265,6
@@
void __init sync_Arb_IDs(void)
| APIC_DM_INIT);
}
-extern void __error_in_apic_c (void);
-
/*
* An initial setup of the virtual wire mode.
*/
@@
-313,8
+311,7
@@
void __cpuinit setup_local_APIC (void)
value = apic_read(APIC_LVR);
- if ((SPURIOUS_APIC_VECTOR & 0x0f) != 0x0f)
- __error_in_apic_c();
+ BUILD_BUG_ON((SPURIOUS_APIC_VECTOR & 0x0f) != 0x0f);
/*
* Double-check whether this APIC is really registered.