diff options
author | David Daney <ddaney@caviumnetworks.com> | 2009-12-10 18:07:24 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2009-12-18 01:14:52 -0500 |
commit | acadbfb90a54673d6c8b05aa4e93218433890411 (patch) | |
tree | 51a505ed337af12751e8a54043dcffa5d81b41ca /arch/alpha | |
parent | a582e6f01b90211933e70edcec9bc0bbb1157402 (diff) | |
download | linux-acadbfb90a54673d6c8b05aa4e93218433890411.tar.gz linux-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')
-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 |