Re: compile error with 2.6.7-rc3-mm1
From: Paul Jackson
Date: Sat Jun 12 2004 - 23:22:39 EST
> | preprocessor output, to see if the (cpumask_t) cast is present.
> |
>
> yeah I have the cputmask_t here:
No - look to see if the __cast__ is there, the (cpumask_t) term
that was needed in the define of CPU_MASK_NONE:
#define CPU_MASK_NONE \
((cpumask_t){ { \
[0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
} })
This would be on the preprocessor code that is generated from line
1137 of drivers/perfctr/x86.c, where the error is generated. This is
the source line that looks like:
old_mask = perfctr_cpus_forbidden_mask;
The preprocessor output from this line in the x86.i file will look
something like this, hopefully:
Good:
old_mask = ((cpumask_t){ { [0 ... (((8)+32 -1)/32)-1] = 0UL } });
Not like this:
Bad:
old_mask = { { [0 ... (((8)+32 -1)/32)-1] = 0UL } };
(the '8' varies with your NR_CPUS configuration).
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/