[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-ia64-devel] [PATCH] Fix BUILD_BUG_ON().
[IA64]: Fix BUILD_BUG_ON(). This is ia64 counter part of 1419a73316e1. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> diff --git a/xen/include/asm-ia64/dom_fw_common.h b/xen/include/asm-ia64/dom_fw_common.h --- a/xen/include/asm-ia64/dom_fw_common.h +++ b/xen/include/asm-ia64/dom_fw_common.h @@ -38,7 +38,7 @@ typedef struct xc_dom_image domain_t; #define printk(fmt, args ...) xc_dom_printf(fmt, ## args) #define BUG_ON(p) assert(!(p)) -#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2 * !!(condition)])) +#define BUILD_BUG_ON(condition) ((void)sizeof(struct { int:-!!(condition); })) //for sort in linux/sort.h. #define sort(base, num, size, cmp, swap) qsort((base), (num), (size), (cmp)) -- yamahata _______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ia64-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |