Skip to content

Commit

Permalink
[ARM] 2932/1: Avoid the "noreturn" warning in arch/arm/kernel/traps.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Catalin Marinas authored and Russell King committed Sep 21, 2005
1 parent a9f7baf commit 6a1ced5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6a1ced5

Please sign in to comment.