Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Daney and committed by
Matt Turner
acadbfb9 a582e6f0

+2 -1
+2 -1
arch/alpha/include/asm/bug.h
··· 13 13 "call_pal %0 # bugchk\n\t" \ 14 14 ".long %1\n\t.8byte %2" \ 15 15 : : "i"(PAL_bugchk), "i"(__LINE__), "i"(__FILE__)); \ 16 - for ( ; ; ); } while (0) 16 + unreachable(); \ 17 + } while (0) 17 18 18 19 #define HAVE_ARCH_BUG 19 20 #endif