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 <ddaney@caviumnetworks.com>
Acked-by: default avatarRalf Baechle <ralf@linux-mips.org>
CC: linux-mips@linux-mips.org
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
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)
;
unreachable();
}
#define HAVE_ARCH_BUG
......
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