bug.h 459 B

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