diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-04-19 10:55:11 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 11:35:47 -0400 |
commit | 5d47a271f38cf2ba7299047ad0bf3ac7e4c4a214 (patch) | |
tree | 7d48099f14dd85584b532c59a57283255e6901da /arch | |
parent | 562b80bafffaf42a6d916b0a2ee3d684220a1c10 (diff) |
x86: use BUILD_BUG_ON() for the size of struct intel_mp_floating
Use BUILD_BUG_ON() instead of compile-time error technique with
extern non-exsistent function.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/mpparse.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 70744e344fa1..101b13cab689 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
@@ -686,13 +686,11 @@ void __init get_smp_config(void) | |||
686 | static int __init smp_scan_config(unsigned long base, unsigned long length, | 686 | static int __init smp_scan_config(unsigned long base, unsigned long length, |
687 | unsigned reserve) | 687 | unsigned reserve) |
688 | { | 688 | { |
689 | extern void __bad_mpf_size(void); | ||
690 | unsigned int *bp = phys_to_virt(base); | 689 | unsigned int *bp = phys_to_virt(base); |
691 | struct intel_mp_floating *mpf; | 690 | struct intel_mp_floating *mpf; |
692 | 691 | ||
693 | Dprintk("Scan SMP from %p for %ld bytes.\n", bp, length); | 692 | Dprintk("Scan SMP from %p for %ld bytes.\n", bp, length); |
694 | if (sizeof(*mpf) != 16) | 693 | BUILD_BUG_ON(sizeof(*mpf) != 16); |
695 | __bad_mpf_size(); | ||
696 | 694 | ||
697 | while (length > 0) { | 695 | while (length > 0) { |
698 | mpf = (struct intel_mp_floating *)bp; | 696 | mpf = (struct intel_mp_floating *)bp; |