1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _ASM_GENERIC_BUG_H
13 #define _ASM_GENERIC_BUG_H
14 
15 #include <linux/compiler.h>
16 
17 #ifndef HAVE_ARCH_BUG
18 #define BUG()
19 #endif
20 
21 #ifndef HAVE_ARCH_BUG_ON
22 #define BUG_ON(condition) do { if (condition) ; } while(0)
23 #endif
24 
25 #ifndef HAVE_ARCH_WARN_ON
26 #define WARN_ON(condition) do { if (condition) ; } while(0)
27 #endif
28 
29 #define WARN_ON_ONCE(condition)  ({   static int __warn_once = 1;   int __ret = 0;     if (unlikely((condition) && __warn_once)) {   __warn_once = 0;   WARN_ON(1);   __ret = 1;   }   __ret;  })
30 
31 #define WARN_ON_SMP(x) do { } while (0)
32 
33 #endif
34