提交 fe7414a2 编写于 作者: A Andi Kleen 提交者: Andi Kleen

[PATCH] Use BUILD_BUG_ON in apic.c build sanity checking

Makes code a little shorter.
Signed-off-by: NAndi Kleen <ak@suse.de>
上级 19f03ffe
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部