]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
x86: use BUILD_BUG_ON() for the size of struct intel_mp_floating
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 19 Apr 2008 14:55:11 +0000 (23:55 +0900)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 15:35:47 +0000 (17:35 +0200)
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>
arch/x86/kernel/mpparse.c

index 70744e344fa1f7541e249299f1a056d2689cf7c3..101b13cab689262c3b8217d889de8e9a7104a430 100644 (file)
@@ -686,13 +686,11 @@ void __init get_smp_config(void)
 static int __init smp_scan_config(unsigned long base, unsigned long length,
                                  unsigned reserve)
 {
-       extern void __bad_mpf_size(void);
        unsigned int *bp = phys_to_virt(base);
        struct intel_mp_floating *mpf;
 
        Dprintk("Scan SMP from %p for %ld bytes.\n", bp, length);
-       if (sizeof(*mpf) != 16)
-               __bad_mpf_size();
+       BUILD_BUG_ON(sizeof(*mpf) != 16);
 
        while (length > 0) {
                mpf = (struct intel_mp_floating *)bp;