Commit 4896cef8 authored by Martin Schwidefsky's avatar Martin Schwidefsky Committed by Linus Torvalds
Browse files

[PATCH] s390: BUG() warnings



Use __builtin_trap instead of an inline assembly in the BUG() macro.  That way
the compiler knows that BUG() won't return.

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5e8b1c40
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4,9 +4,10 @@
#include <linux/kernel.h>

#ifdef CONFIG_BUG

#define BUG() do { \
	printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
        __asm__ __volatile__(".long 0"); \
	__builtin_trap(); \
} while (0)

#define HAVE_ARCH_BUG