direct-io.hg

changeset 12413:37a8dbe24201

[IA64] compilation fix when crash_debug=y.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Tue Oct 31 22:25:17 2006 -0700 (2006-10-31)
parents fa4281cb7a5b
children 77bf1d1628a7
files xen/include/asm-ia64/linux-xen/asm/atomic.h
line diff
     1.1 --- a/xen/include/asm-ia64/linux-xen/asm/atomic.h	Tue Oct 31 22:25:12 2006 -0700
     1.2 +++ b/xen/include/asm-ia64/linux-xen/asm/atomic.h	Tue Oct 31 22:25:17 2006 -0700
     1.3 @@ -23,8 +23,13 @@
     1.4  typedef struct { volatile __s32 counter; } atomic_t;
     1.5  typedef struct { volatile __s64 counter; } atomic64_t;
     1.6  
     1.7 +#ifndef XEN
     1.8  #define ATOMIC_INIT(i)		((atomic_t) { (i) })
     1.9  #define ATOMIC64_INIT(i)	((atomic64_t) { (i) })
    1.10 +#else
    1.11 +#define ATOMIC_INIT(i)		{ (i) }
    1.12 +#define ATOMIC64_INIT(i)	{ (i) }
    1.13 +#endif
    1.14  
    1.15  #define atomic_read(v)		((v)->counter)
    1.16  #define atomic64_read(v)	((v)->counter)