X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Fasm-arm%2Fbug.h;h=7b62351f097d2f49ff6fcfb7ea0e0c43e11d012f;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=5e91b90a8181cb8a9b7e858757792d14d3a22896;hpb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;p=linux-2.6.git diff --git a/include/asm-arm/bug.h b/include/asm-arm/bug.h index 5e91b90a8..7b62351f0 100644 --- a/include/asm-arm/bug.h +++ b/include/asm-arm/bug.h @@ -1,13 +1,13 @@ #ifndef _ASMARM_BUG_H #define _ASMARM_BUG_H -#include +#ifdef CONFIG_BUG #ifdef CONFIG_DEBUG_BUGVERBOSE -extern volatile void __bug(const char *file, int line, void *data); +extern void __bug(const char *file, int line) __attribute__((noreturn)); /* give file/line information */ -#define BUG() __bug(__FILE__, __LINE__, NULL) +#define BUG() __bug(__FILE__, __LINE__) #else @@ -17,6 +17,8 @@ extern volatile void __bug(const char *file, int line, void *data); #endif #define HAVE_ARCH_BUG +#endif + #include #endif