summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2009-12-05 02:44:53 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-05 18:10:12 +0100
commit5506e68975c346e55f786b554e28e368cdede444 (patch)
tree9ef0968ca686c5e0c1c402ea8b5f5c18657356ee /arch/s390
parentMIPS: Convert BUG() to use unreachable() (diff)
downloadlinux-5506e68975c346e55f786b554e28e368cdede444.tar.xz
linux-5506e68975c346e55f786b554e28e368cdede444.zip
s390: Convert BUG() to use unreachable()
Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney <ddaney@caviumnetworks.com> Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com> CC: Heiko Carstens <heiko.carstens@de.ibm.com> CC: linux390@de.ibm.com CC: linux-s390@vger.kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/asm/bug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/bug.h b/arch/s390/include/asm/bug.h
index 7efd0abe8887..efb74fd5156e 100644
--- a/arch/s390/include/asm/bug.h
+++ b/arch/s390/include/asm/bug.h
@@ -49,7 +49,7 @@
#define BUG() do { \
__EMIT_BUG(0); \
- for (;;); \
+ unreachable(); \
} while (0)
#define WARN_ON(x) ({ \