From: David Daney Date: Thu, 10 Dec 2009 23:07:24 +0000 (-0500) Subject: alpha: Convert BUG() to use unreachable() X-Git-Tag: 2.1b_release~9856^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acadbfb90a54673d6c8b05aa4e93218433890411;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git alpha: Convert BUG() to use unreachable() Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney CC: Richard Henderson CC: Ivan Kokshaysky CC: linux-alpha@vger.kernel.org Signed-off-by: Matt Turner --- diff --git a/arch/alpha/include/asm/bug.h b/arch/alpha/include/asm/bug.h index 1720c8a..f091682 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