Skip to content

Commit

Permalink
alpha: Convert BUG() to use unreachable()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Daney authored and Matt Turner committed Dec 18, 2009
1 parent a582e6f commit acadbfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/alpha/include/asm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acadbfb

Please sign in to comment.