Commit 4ef5651e authored by David Daney's avatar David Daney Committed by Linus Torvalds
Browse files

MIPS: Convert BUG() to use unreachable()

Use the new unreachable() macro instead of while(1);

Signed-off-by: default avatarDavid Daney <>
Acked-by: default avatarRalf Baechle <>
Signed-off-by: default avatarLinus Torvalds <>
parent a5fc5eba
......@@ -11,9 +11,7 @@
static inline void __noreturn BUG(void)
__asm__ __volatile__("break %0" : : "i" (BRK_BUG));
/* Fool GCC into thinking the function doesn't return. */
while (1)
Supports Markdown
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