lkml.org 
[lkml]   [2004]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: compile error with 2.6.7-rc3-mm1
> | 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@sgi.com> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.078 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site