Commit 5506e689 authored by David Daney's avatar David Daney Committed by Linus Torvalds

s390: Convert BUG() to use unreachable()

Use the new unreachable() macro instead of for(;;);
Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Acked-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
CC: Heiko Carstens <heiko.carstens@de.ibm.com>
CC: linux390@de.ibm.com
CC: linux-s390@vger.kernel.org
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4ef5651e
......@@ -49,7 +49,7 @@
#define BUG() do { \
__EMIT_BUG(0); \
for (;;); \
unreachable(); \
} while (0)
#define WARN_ON(x) ({ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment