]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
alpha: Convert BUG() to use unreachable()
authorDavid Daney <ddaney@caviumnetworks.com>
Thu, 10 Dec 2009 23:07:24 +0000 (18:07 -0500)
committerMatt Turner <mattst88@gmail.com>
Fri, 18 Dec 2009 06:14:52 +0000 (01:14 -0500)
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>
arch/alpha/include/asm/bug.h

index 1720c8ad86fec780ca054e42ed8baaa21735e899..f091682e3cc84b4a9bffccc136147870b42fa6e0 100644 (file)
@@ -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