[3.7-rc6/perf,x86] Build failure at p6_pmu declaration.

From: Tetsuo Handa
Date: Sat Nov 17 2012 - 03:54:28 EST


Commit caaa8be3 "perf, x86: Fix __initconst vs const" causes

arch/x86/kernel/cpu/perf_event_p6.c:200: error: p6_pmu causes a section type conflict
make[3]: *** [arch/x86/kernel/cpu/perf_event_p6.o] Error 1

error. Patching

-static __initconst const struct x86_pmu p6_pmu = {
+static __initconst struct x86_pmu p6_pmu = {

solved the error. But is this rather a compiler bug? I'm using gcc 3.3.5.
--
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/