[PATCH] ARM: Convert BUG() to use unreachable()
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Tue Dec 8 04:55:38 EST 2009
Use the new unreachable() macro instead of for(;;);
Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Cc: David Daney <ddaney at caviumnetworks.com>
---
arch/arm/kernel/traps.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index 3f361a7..25b50c4 100644
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
@@ -681,7 +681,7 @@ void __attribute__((noreturn)) __bug(const char *file, int line)
*(int *)0 = 0;
/* Avoid "noreturn function does return" */
- for (;;);
+ unreachable();
}
EXPORT_SYMBOL(__bug);
--
1.6.5.2
More information about the linux-arm-kernel
mailing list