Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

m68k: Make gcc aware that BUG() does not return

Use `__builtin_trap()' instead of `asm volatile("illegal")' in the m68k BUG()
macros (as suggested by Andrew Pinski), to kill warnings in code that assumes
BUG() does not return.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Geert Uytterhoeven and committed by
Linus Torvalds
e8006b06 eb4db450

+2 -2
+2 -2
include/asm-m68k/bug.h
··· 7 7 #ifndef CONFIG_SUN3 8 8 #define BUG() do { \ 9 9 printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ 10 - asm volatile("illegal"); \ 10 + __builtin_trap(); \ 11 11 } while (0) 12 12 #else 13 13 #define BUG() do { \ ··· 17 17 #endif 18 18 #else 19 19 #define BUG() do { \ 20 - asm volatile("illegal"); \ 20 + __builtin_trap(); \ 21 21 } while (0) 22 22 #endif 23 23