提交 e8006b06 编写于 作者: G Geert Uytterhoeven 提交者: Linus Torvalds

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: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 eb4db450
......@@ -7,7 +7,7 @@
#ifndef CONFIG_SUN3
#define BUG() do { \
printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
asm volatile("illegal"); \
__builtin_trap(); \
} while (0)
#else
#define BUG() do { \
......@@ -17,7 +17,7 @@
#endif
#else
#define BUG() do { \
asm volatile("illegal"); \
__builtin_trap(); \
} while (0)
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册