Commit 01ae45bc authored by David Daney's avatar David Daney Committed by Benjamin Herrenschmidt

powerpc: Convert BUG() to use unreachable()

Use the new unreachable() macro instead of for(;;);
Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: Paul Mackerras <paulus@samba.org>
CC: linuxppc-dev@ozlabs.org
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 3d9b740b
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
_EMIT_BUG_ENTRY \ _EMIT_BUG_ENTRY \
: : "i" (__FILE__), "i" (__LINE__), \ : : "i" (__FILE__), "i" (__LINE__), \
"i" (0), "i" (sizeof(struct bug_entry))); \ "i" (0), "i" (sizeof(struct bug_entry))); \
for(;;) ; \ unreachable(); \
} while (0) } while (0)
#define BUG_ON(x) do { \ #define BUG_ON(x) do { \
......
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