Re: [2.5.63-bk6 compile error] __crc_page_states__per_cpu not in

Rusty Lynch (rusty@linux.co.intel.com)
03 Mar 2003 11:13:24 -0800


yes, this works for me.

--rustyl

On Mon, 2003-03-03 at 11:10, Kai Germaschewski wrote:
> On 3 Mar 2003, Rusty Lynch wrote:
>
> > After updating my bk tree this morning, I am getting the
> > following compile error:
> >
> > 4d13d7e9 A __crc_page_states__per_cpu not in per-cpu section
> > make: *** [vmlinux] Error 1
>
> It's a false positive from the script which checks whether all per-cpu
> variables ended up in the correct section. __crc_page_states__per_cpu ends
> in __per_cpu, that's why the script thinks it's a per-cpu variable, but
> it's not, it's just a checksum.
>
> Could you try if this patch fixes it, I don't really speak awk ;)
>
> You should be able to reproduce the error by just doing "rm vmlinux; make
> vmlinux", but not anymore after applying the patch below.
>
> --Kai
>
>
> ===== scripts/per-cpu-check.awk 1.3 vs edited =====
> --- 1.3/scripts/per-cpu-check.awk Fri Jan 24 14:27:01 2003
> +++ edited/scripts/per-cpu-check.awk Mon Mar 3 13:05:48 2003
> @@ -6,7 +6,7 @@
> IN_PER_CPU=0
> }
>
> -/__per_cpu$$/ && ! ( / __ksymtab_/ || / __kstrtab_/ || / __kcrctab_/ ) {
> +/__per_cpu$$/ && ! ( / __ksymtab_/ || / __kstrtab_/ || / __kcrctab_/ || / __crc_/ ) {
> if (!IN_PER_CPU) {
> print $$3 " not in per-cpu section" > "/dev/stderr";
> FOUND=1;
>

-
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/