Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acadbfb9 authored by David Daney's avatar David Daney Committed by Matt Turner
Browse files

alpha: Convert BUG() to use unreachable()



Use the new unreachable() macro instead of for(;;);

Signed-off-by: default avatarDavid 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: default avatarMatt Turner <mattst88@gmail.com>
parent a582e6f0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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