Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/gregkh/driver...
[linux-2.6/verdex.git] / include / asm-arm / bug.h
blob24d11672eb601979d2ca64e3adf60dc923dfe22a
1 #ifndef _ASMARM_BUG_H
2 #define _ASMARM_BUG_H
4 #include <linux/config.h>
6 #ifdef CONFIG_BUG
7 #ifdef CONFIG_DEBUG_BUGVERBOSE
8 extern volatile void __bug(const char *file, int line, void *data);
10 /* give file/line information */
11 #define BUG() __bug(__FILE__, __LINE__, NULL)
13 #else
15 /* this just causes an oops */
16 #define BUG() (*(int *)0 = 0)
18 #endif
20 #define HAVE_ARCH_BUG
21 #endif
23 #include <asm-generic/bug.h>
25 #endif