diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-10-18 14:46:48 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-10-18 14:46:48 +0100 |
commit | 3943db776371b40e0c93e1244669bc9b78f8bbf1 (patch) | |
tree | 67ece81d381d8449636c719a8c7dca723f50d1e7 /xen/include/xen/spinlock.h | |
parent | 946eb2a9da1f63f87656726152ab427e112e392d (diff) | |
download | xen-3943db776371b40e0c93e1244669bc9b78f8bbf1.tar.gz xen-3943db776371b40e0c93e1244669bc9b78f8bbf1.tar.bz2 xen-3943db776371b40e0c93e1244669bc9b78f8bbf1.zip |
[XEN] Can be built -std=gnu99 (except for .S files).
Need to be careful with static initialisers:
1. *_LOCK_UNLOCKED, CPU_MASK_* no longer include a cast
2. Dynamic uses of the above are replaced by
appropriate function invocations.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/spinlock.h')
-rw-r--r-- | xen/include/xen/spinlock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/include/xen/spinlock.h b/xen/include/xen/spinlock.h index 73184daad8..11f83119d4 100644 --- a/xen/include/xen/spinlock.h +++ b/xen/include/xen/spinlock.h @@ -42,10 +42,10 @@ #if (__GNUC__ > 2) typedef struct { } spinlock_t; -#define SPIN_LOCK_UNLOCKED (spinlock_t) { } +#define SPIN_LOCK_UNLOCKED /*(spinlock_t)*/ { } #else typedef struct { int gcc_is_buggy; } spinlock_t; -#define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 } +#define SPIN_LOCK_UNLOCKED /*(spinlock_t)*/ { 0 } #endif #define spin_lock_init(lock) do { } while(0) @@ -58,10 +58,10 @@ typedef struct { int gcc_is_buggy; } spinlock_t; #if (__GNUC__ > 2) typedef struct { } rwlock_t; -#define RW_LOCK_UNLOCKED (rwlock_t) { } +#define RW_LOCK_UNLOCKED /*(rwlock_t)*/ { } #else typedef struct { int gcc_is_buggy; } rwlock_t; -#define RW_LOCK_UNLOCKED (rwlock_t) { 0 } +#define RW_LOCK_UNLOCKED /*(rwlock_t)*/ { 0 } #endif #define rwlock_init(lock) do { } while(0) |