Re: Fwd: error: 'const_pcpu_hot' causes a section type conflict with 'pcpu_hot' when compiling with -flto

From: Thomas Gleixner
Date: Wed Aug 07 2024 - 10:08:34 EST


On Sat, Aug 03 2024 at 10:55, Bagas Sanjaya wrote:
>> when compiling linux kernel 6.9-6.10 with -flto
>>
>> compiler outputs:
>>
>> ./arch/x86/include/asm/current.h:42:25: error: 'const_pcpu_hot' causes a section type conflict with 'pcpu_hot' const_pcpu_hot);
>
> He could reproduce the build error on mainline:

That's caused by:

ed2f752e0e0a ("x86/percpu: Introduce const-qualified const_pcpu_hot to micro-optimize code generation")

Uros?

Thanks,

tglx