aboutsummaryrefslogtreecommitdiff
path: root/include/ubi_uboot.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2011-06-08 23:07:05 +0000
committerWolfgang Denk <wd@denx.de>2011-07-27 23:45:37 +0200
commitc00e17c7fe184c966e34ad48bf753c930ebac1df (patch)
tree33314a10f913b716429b5a468ec2da0ae19a0b6f /include/ubi_uboot.h
parentf7fb46a8f3c74ca49a0c372836e4a160085e95fe (diff)
downloadu-boot-c00e17c7fe184c966e34ad48bf753c930ebac1df.zip
u-boot-c00e17c7fe184c966e34ad48bf753c930ebac1df.tar.gz
u-boot-c00e17c7fe184c966e34ad48bf753c930ebac1df.tar.bz2
common: move BUILD_BUG_ON define to common.h
see discussion also here: http://patchwork.ozlabs.org/patch/75309/ Signed-off-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Holger Brunck <holger.brunck@keymile.com>
Diffstat (limited to 'include/ubi_uboot.h')
-rw-r--r--include/ubi_uboot.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/ubi_uboot.h b/include/ubi_uboot.h
index d2c90a6..69006e2 100644
--- a/include/ubi_uboot.h
+++ b/include/ubi_uboot.h
@@ -191,9 +191,6 @@ static inline long IS_ERR(const void *ptr)
return IS_ERR_VALUE((unsigned long)ptr);
}
-/* Force a compilation error if condition is true */
-#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
-
/* module */
#define THIS_MODULE 0
#define try_module_get(...) 1