Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / include / asm-arm / bug.h
1 #ifndef _ASMARM_BUG_H
2 #define _ASMARM_BUG_H
3
4 #include <linux/config.h>
5 #include <linux/stddef.h>
6
7 #ifdef CONFIG_BUG
8 #ifdef CONFIG_DEBUG_BUGVERBOSE
9 extern void __bug(const char *file, int line, void *data) __attribute__((noreturn));
10
11 /* give file/line information */
12 #define BUG()           __bug(__FILE__, __LINE__, NULL)
13
14 #else
15
16 /* this just causes an oops */
17 #define BUG()           (*(int *)0 = 0)
18
19 #endif
20
21 #define HAVE_ARCH_BUG
22 #endif
23
24 #include <asm-generic/bug.h>
25
26 #endif