Re: randconfig build error with next-20140122, inarch/x86/platform/intel-mid/intel-mid.c

From: David Cohen
Date: Wed Jan 22 2014 - 16:33:36 EST


Hi,

On Wed, Jan 22, 2014 at 11:45:42AM -0700, Jim Davis wrote:
> Building with the attached random configuration file,
>
> In file included from arch/x86/platform/intel-mid/intel-mid.c:38:0:
> arch/x86/platform/intel-mid/intel_mid_weak_decls.h:17:25: error:
> expected â=â, â,â, â;â, âasmâ or â__attribute__â before
> âget_penwell_opsâ
> extern void * __cpuinit get_penwell_ops(void) __attribute__((weak));
> ^
> arch/x86/platform/intel-mid/intel_mid_weak_decls.h:18:25: error:
> expected â=â, â,â, â;â, âasmâ or â__attribute__â before
> âget_cloverview_opsâ
> extern void * __cpuinit get_cloverview_ops(void) __attribute__((weak));
> ^
> In file included from arch/x86/platform/intel-mid/intel-mid.c:30:0:
> /home/jim/linux/arch/x86/include/asm/intel-mid.h:74:15: error:
> âget_penwell_opsâ undeclared here (not in a function)
> [cpuid] = get_##cpuname##_ops
> ^
> /home/jim/linux/arch/x86/include/asm/intel-mid.h:84:2: note: in
> expansion of macro âDECLARE_INTEL_MID_OPS_INITâ
> DECLARE_INTEL_MID_OPS_INIT(penwell, INTEL_MID_CPU_CHIP_PENWELL), \
> ^
> arch/x86/platform/intel-mid/intel-mid.c:66:45: note: in expansion of
> macro âINTEL_MID_OPS_INITâ
> static void *(*get_intel_mid_ops[])(void) = INTEL_MID_OPS_INIT;
> ^
> /home/jim/linux/arch/x86/include/asm/intel-mid.h:74:15: error:
> âget_cloverview_opsâ undeclared here (not in a function)
> [cpuid] = get_##cpuname##_ops
> ^
> /home/jim/linux/arch/x86/include/asm/intel-mid.h:85:2: note: in
> expansion of macro âDECLARE_INTEL_MID_OPS_INITâ
> DECLARE_INTEL_MID_OPS_INIT(cloverview, INTEL_MID_CPU_CHIP_CLOVERVIEW), \
> ^
> arch/x86/platform/intel-mid/intel-mid.c:66:45: note: in expansion of
> macro âINTEL_MID_OPS_INITâ
> static void *(*get_intel_mid_ops[])(void) = INTEL_MID_OPS_INIT;
> ^
> make[3]: *** [arch/x86/platform/intel-mid/intel-mid.o] Error 1

I just acked a patch fixing this problem. Please, consider apply this as
fix:
https://lkml.org/lkml/2014/1/22/327

Br, David Cohen
--
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/