mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 09:02:00 +00:00
7174d85260
It appears that include/asm-arm/bug.h requires include/linux/stddef.h for the definition of NULL. It seems that stddef.h was always included indirectly in most cases, and that issue was properly fixed a while ago. Then commit5047f09b56
incorrectly reverted change from commitff10952a54
(bad dwmw2) and the problem recently resurfaced. Because the third argument to __bug() is never used anyway, RMK suggested getting rid of it entirely instead of readding #include <linux/stddef.h> which this patch does. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
25 lines
389 B
C
25 lines
389 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() (*(int *)0 = 0)
|
|
|
|
#endif
|
|
|
|
#define HAVE_ARCH_BUG
|
|
#endif
|
|
|
|
#include <asm-generic/bug.h>
|
|
|
|
#endif
|