Commit 05920797 authored by David Daney's avatar David Daney Committed by Kyle McMartin

parisc: Convert BUG() to use unreachable()

Use the new unreachable() macro instead of for(;;);
Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
parent 6ad6c424
...@@ -32,14 +32,14 @@ ...@@ -32,14 +32,14 @@
"\t.popsection" \ "\t.popsection" \
: : "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)
#else #else
#define BUG() \ #define BUG() \
do { \ do { \
asm volatile(PARISC_BUG_BREAK_ASM : : ); \ asm volatile(PARISC_BUG_BREAK_ASM : : ); \
for(;;) ; \ unreachable(); \
} while(0) } while(0)
#endif #endif
......
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