Re: 2.6.7-rc3-mm1

William Lee Irwin III
2004-06-10T05:31:50Z

On Thu, Jun 10, 2004 at 02:16:06PM +0900, Clemens Schwaighofer wrote:
> compile error in:
> drivers/perfctr/x86.c: In function `finalise_backpatching':
> drivers/perfctr/x86.c:1137: error: parse error before '{' token
> make[2]: *** [drivers/perfctr/x86.o] Error 1
> make[1]: *** [drivers/perfctr] Error 2
> make: *** [drivers] Error 2
> the kernel compiled fine with 2.6.7-rc2-mm2.
> config attached.

You will likely need other fixes, but...

Index: mm1-2.6.7-rc3/include/linux/cpumask.h
===================================================================
--- mm1-2.6.7-rc3.orig/include/linux/cpumask.h 2004-06-09 08:06:54.000000000 -0700
+++ mm1-2.6.7-rc3/include/linux/cpumask.h 2004-06-09 22:30:18.000000000 -0700
@@ -248,9 +248,9 @@
#endif

#define CPU_MASK_NONE \
-{ { \
+((cpumask_t) { { \
[0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
-} }
+} })

#define cpus_addr(src) ((src).bits)