mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
parisc: Convert BUG() to use unreachable()
Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney <ddaney@caviumnetworks.com> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
This commit is contained in:
parent
6ad6c4245e
commit
05920797ca
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user