1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _ASM_GENERIC_BUG_H
13 #define _ASM_GENERIC_BUG_H
15 #include <linux/compiler.h>
21 #ifndef HAVE_ARCH_BUG_ON
22 #define BUG_ON(condition) do { if (condition) ; } while(0)
25 #ifndef HAVE_ARCH_WARN_ON
26 #define WARN_ON(condition) do { if (condition) ; } while(0)
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; })
31 #define WARN_ON_SMP(x) do { } while (0)