ia64/xen-unstable

changeset 18879:9837303a4708

[IA64]: Fix BUILD_BUG_ON().

This is ia64 counter part of 1419a73316e1.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Wed Dec 24 12:50:57 2008 +0900 (2008-12-24)
parents 559809738237
children 07f26e047fbf
files xen/include/asm-ia64/dom_fw_common.h
line diff
     1.1 --- a/xen/include/asm-ia64/dom_fw_common.h	Wed Dec 24 12:50:55 2008 +0900
     1.2 +++ b/xen/include/asm-ia64/dom_fw_common.h	Wed Dec 24 12:50:57 2008 +0900
     1.3 @@ -38,7 +38,7 @@ typedef struct xc_dom_image domain_t;
     1.4  #define printk(fmt, args ...)	xc_dom_printf(fmt, ## args)
     1.5  
     1.6  #define BUG_ON(p)	assert(!(p))
     1.7 -#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2 * !!(condition)]))
     1.8 +#define BUILD_BUG_ON(condition) ((void)sizeof(struct { int:-!!(condition); }))
     1.9  
    1.10  //for sort in linux/sort.h.
    1.11  #define sort(base, num, size, cmp, swap) qsort((base), (num), (size), (cmp))