Skip to content

Commit

Permalink
[PATCH] Use BUILD_BUG_ON in apic.c build sanity checking
Browse files Browse the repository at this point in the history
Makes code a little shorter.

Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Sep 26, 2006
1 parent 19f03ff commit fe7414a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/x86_64/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit fe7414a

Please sign in to comment.