bug.h 433 B

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