summaryrefslogtreecommitdiff
path: root/arch/alpha/include
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2009-12-11 02:07:24 +0300
committerMatt Turner <mattst88@gmail.com>2009-12-18 09:14:52 +0300
commitacadbfb90a54673d6c8b05aa4e93218433890411 (patch)
tree51a505ed337af12751e8a54043dcffa5d81b41ca /arch/alpha/include
parenta582e6f01b90211933e70edcec9bc0bbb1157402 (diff)
downloadlinux-acadbfb90a54673d6c8b05aa4e93218433890411.tar.xz
alpha: Convert BUG() to use unreachable()
Use the new unreachable() macro instead of for(;;); Signed-off-by: David 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: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha/include')
-rw-r--r--arch/alpha/include/asm/bug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/alpha/include/asm/bug.h b/arch/alpha/include/asm/bug.h
index 1720c8ad86fe..f091682e3cc8 100644
--- a/arch/alpha/include/asm/bug.h
+++ b/arch/alpha/include/asm/bug.h
@@ -13,7 +13,8 @@
"call_pal %0 # bugchk\n\t" \
".long %1\n\t.8byte %2" \
: : "i"(PAL_bugchk), "i"(__LINE__), "i"(__FILE__)); \
- for ( ; ; ); } while (0)
+ unreachable(); \
+ } while (0)
#define HAVE_ARCH_BUG
#endif