mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
d81030a1ba
When CONFIG_DEBUG_BUGVERBOSE is not set, we get warnings such as: arch/arm/mm/ioremap.c: In function ‘remap_area_pte’: arch/arm/mm/ioremap.c:67: warning: control reaches end of non-void function mm/bootmem.c: In function ‘mark_bootmem’: mm/bootmem.c:321: warning: control reaches end of non-void function fs/dcache.c: In function ‘d_materialise_unique’: fs/dcache.c:1875: warning: control reaches end of non-void function fs/nfs/client.c: In function ‘nfs_sockaddr_match_ipaddr’: fs/nfs/client.c:251: warning: control reaches end of non-void function block/cfq-iosched.c: In function ‘cfq_async_queue_prio’: block/cfq-iosched.c:1501: warning: control reaches end of non-void function Signed-off-by: Nicolas Pitre <nico@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
25 lines
405 B
C
25 lines
405 B
C
#ifndef _ASMARM_BUG_H
|
|
#define _ASMARM_BUG_H
|
|
|
|
|
|
#ifdef CONFIG_BUG
|
|
#ifdef CONFIG_DEBUG_BUGVERBOSE
|
|
extern void __bug(const char *file, int line) __attribute__((noreturn));
|
|
|
|
/* give file/line information */
|
|
#define BUG() __bug(__FILE__, __LINE__)
|
|
|
|
#else
|
|
|
|
/* this just causes an oops */
|
|
#define BUG() do { *(int *)0 = 0; } while (1)
|
|
|
|
#endif
|
|
|
|
#define HAVE_ARCH_BUG
|
|
#endif
|
|
|
|
#include <asm-generic/bug.h>
|
|
|
|
#endif
|