bug.h 389 B

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