Skip to content
Snippets Groups Projects
Commit c00e17c7 authored by Heiko Schocher's avatar Heiko Schocher Committed by Wolfgang Denk
Browse files

common: move BUILD_BUG_ON define to common.h

see discussion also here:
http://patchwork.ozlabs.org/patch/75309/



Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Holger Brunck <holger.brunck@keymile.com>
parent f7fb46a8
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,9 @@ typedef volatile unsigned char vu_char;
#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
#endif /* BUG */
/* Force a compilation error if condition is true */
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
typedef void (interrupt_handler_t)(void *);
#include <asm/u-boot.h> /* boot information for Linux kernel */
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment