summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-18 22:05:02 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-18 22:05:02 -0700
commit8488dd95ee9f05ba43f7f41e99ed34da00c313a6 (patch)
treeab6b794522a8e7514e1ec66ce208cab7e28f984e /include
parenteeb3e3b9e796443c999cd9e753ae766b26b7b58a (diff)
[PATCH] CPU_MASK_ALL fix
From: Nick Piggin <nickpiggin@yahoo.com.au> Do the typecast thing to permit CPU_MASK_ALL to be used both as an initialiser and as a normal rvalue.
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/cpumask_array.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-generic/cpumask_array.h b/include/asm-generic/cpumask_array.h
index c7e2db29dc53..ddd6e1185dba 100644
--- a/include/asm-generic/cpumask_array.h
+++ b/include/asm-generic/cpumask_array.h
@@ -48,7 +48,7 @@
/*
* um, these need to be usable as static initializers
*/
-#define CPU_MASK_ALL { {[0 ... CPU_ARRAY_SIZE-1] = ~0UL} }
-#define CPU_MASK_NONE { {[0 ... CPU_ARRAY_SIZE-1] = 0UL} }
+#define CPU_MASK_ALL ((cpumask_t) { {[0 ... CPU_ARRAY_SIZE-1] = ~0UL} })
+#define CPU_MASK_NONE ((cpumask_t) { {[0 ... CPU_ARRAY_SIZE-1] = 0UL} })
#endif /* __ASM_GENERIC_CPUMASK_ARRAY_H */