Skip to content
Snippets Groups Projects
Commit acadbfb9 authored by David Daney's avatar David Daney Committed by Matt Turner
Browse files

alpha: Convert BUG() to use unreachable()


Use the new unreachable() macro instead of for(;;);

Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
CC: Richard Henderson <rth@twiddle.net>
CC: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
CC: linux-alpha@vger.kernel.org
Signed-off-by: default avatarMatt Turner <mattst88@gmail.com>
parent a582e6f0
Branches
Tags
No related merge requests found
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
"call_pal %0 # bugchk\n\t" \ "call_pal %0 # bugchk\n\t" \
".long %1\n\t.8byte %2" \ ".long %1\n\t.8byte %2" \
: : "i"(PAL_bugchk), "i"(__LINE__), "i"(__FILE__)); \ : : "i"(PAL_bugchk), "i"(__LINE__), "i"(__FILE__)); \
for ( ; ; ); } while (0) unreachable(); \
} while (0)
#define HAVE_ARCH_BUG #define HAVE_ARCH_BUG
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment