[PATCH] x86_64: CONFIG_BUG=n fixes

Fixes some !CONFIG_BUG warnings:
include/asm/mmu_context.h: I funktion `switch_mm':
include/asm/mmu_context.h:57: varning: implicit declaration of function `out_of_line_bug'

Signed-off-by: Alexander Nyberg <alexn@telia.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Alexander Nyberg and committed by Linus Torvalds 4f60fdf6 dca79a04

+6 -1
+2
arch/x86_64/kernel/traps.c
··· 332 332 printk(KERN_ALERT "Kernel BUG at %.50s:%d\n", f.filename, f.line); 333 333 } 334 334 335 + #ifdef CONFIG_BUG 335 336 void out_of_line_bug(void) 336 337 { 337 338 BUG(); 338 339 } 340 + #endif 339 341 340 342 static DEFINE_SPINLOCK(die_lock); 341 343 static int die_owner = -1;
+2 -1
arch/x86_64/kernel/x8664_ksyms.c
··· 193 193 extern void do_softirq_thunk(void); 194 194 EXPORT_SYMBOL(do_softirq_thunk); 195 195 196 - void out_of_line_bug(void); 196 + #ifdef CONFIG_BUG 197 197 EXPORT_SYMBOL(out_of_line_bug); 198 + #endif 198 199 199 200 EXPORT_SYMBOL(init_level4_pgt); 200 201
+2
include/asm-x86_64/bug.h
··· 21 21 asm volatile("ud2 ; .quad %c1 ; .short %c0" :: \ 22 22 "i"(__LINE__), "i" (__stringify(__FILE__))) 23 23 void out_of_line_bug(void); 24 + #else 25 + static inline void out_of_line_bug(void) { } 24 26 #endif 25 27 26 28 #include <asm-generic/bug.h>