]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blob - libc/kernel/common/asm-generic/bug.h
auto import from //depot/cupcake/@135843
[android-sdk/platform-bionic.git] / libc / kernel / common / asm-generic / bug.h
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
15 #include <linux/compiler.h>
17 #ifndef HAVE_ARCH_BUG
18 #define BUG()
19 #endif
21 #ifndef HAVE_ARCH_BUG_ON
22 #define BUG_ON(condition) do { if (condition) ; } while(0)
23 #endif
25 #ifndef HAVE_ARCH_WARN_ON
26 #define WARN_ON(condition) do { if (condition) ; } while(0)
27 #endif
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)
33 #endif