提交 acadbfb9 编写于 作者: D David Daney 提交者: Matt Turner

alpha: Convert BUG() to use unreachable()

Use the new unreachable() macro instead of for(;;);
Signed-off-by: NDavid 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: NMatt Turner <mattst88@gmail.com>
上级 a582e6f0
...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册