bug.h 390 B

12345678910111213141516171819202122
  1. #ifndef _ASMARM_BUG_H
  2. #define _ASMARM_BUG_H
  3. #include <linux/config.h>
  4. #ifdef CONFIG_DEBUG_BUGVERBOSE
  5. extern volatile void __bug(const char *file, int line, void *data);
  6. /* give file/line information */
  7. #define BUG() __bug(__FILE__, __LINE__, NULL)
  8. #else
  9. /* this just causes an oops */
  10. #define BUG() (*(int *)0 = 0)
  11. #endif
  12. #define HAVE_ARCH_BUG
  13. #include <asm-generic/bug.h>
  14. #endif