From 8488dd95ee9f05ba43f7f41e99ed34da00c313a6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 18 Apr 2004 22:05:02 -0700 Subject: [PATCH] CPU_MASK_ALL fix From: Nick Piggin Do the typecast thing to permit CPU_MASK_ALL to be used both as an initialiser and as a normal rvalue. --- include/asm-generic/cpumask_array.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.3