diff options
author | David Daney <ddaney@caviumnetworks.com> | 2009-12-11 00:07:24 +0100 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2009-12-18 07:14:52 +0100 |
commit | acadbfb90a54673d6c8b05aa4e93218433890411 (patch) | |
tree | 51a505ed337af12751e8a54043dcffa5d81b41ca /arch/alpha/include/asm/bug.h | |
parent | alpha: Add minimal support for software performance events (diff) | |
download | linux-acadbfb90a54673d6c8b05aa4e93218433890411.tar.xz linux-acadbfb90a54673d6c8b05aa4e93218433890411.zip |
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/asm/bug.h')
-rw-r--r-- | arch/alpha/include/asm/bug.h | 3 |
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 |