x86: uv io-apic - use BUILD_BUG_ON instead of BUG_ON
authorCyrill Gorcunov <gorcunov@openvz.org>
Sat, 2 May 2009 09:39:56 +0000 (13:39 +0400)
committerIngo Molnar <mingo@elte.hu>
Sun, 3 May 2009 08:38:21 +0000 (10:38 +0200)
commit1cbac972ba28e706fa9ce4d4c81830040bc811ee
treeb06c99d5258ae157f98aa7e5a23887184e80e017
parent6f0aced639d346e5f54eea9fcb2784b633493d09
x86: uv io-apic - use BUILD_BUG_ON instead of BUG_ON

The expression is known to be true/false at compilation
time so we're allowed to use build-time instead of
run-time check. Also align 'entry' items assignment.

[ Impact: shrink kernel a bit, cleanup ]

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Jack Steiner <steiner@sgi.com>
LKML-Reference: <20090502093956.GB4791@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/io_apic.c