summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2005-09-21 22:14:05 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-09-21 22:14:05 +0100
commit6a1ced59b3ac5d1088f597fd0613a724cdf19e2c (patch)
tree8165b4ab26e448b2bd1a54a460a007521f1d5661 /arch/arm
parenta9f7baf4d695dbe3028d40ca374c1d11499eaee6 (diff)
downloadop-kernel-dev-6a1ced59b3ac5d1088f597fd0613a724cdf19e2c.zip
op-kernel-dev-6a1ced59b3ac5d1088f597fd0613a724cdf19e2c.tar.gz
[ARM] 2932/1: Avoid the "noreturn" warning in arch/arm/kernel/traps.c
Patch from Catalin Marinas This patch prevents the "noreturn function does return" warning in the __bug() function in arch/arm/kernel/traps.c Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/kernel/traps.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index 4554c96..e7d22db 100644
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
@@ -624,6 +624,9 @@ void __attribute__((noreturn)) __bug(const char *file, int line, void *data)
printk(" - extra data = %p", data);
printk("\n");
*(int *)0 = 0;
+
+ /* Avoid "noreturn function does return" */
+ for (;;);
}
EXPORT_SYMBOL(__bug);
OpenPOWER on IntegriCloud