Re: linux-next: build warning after merge of the pm tree

From: Rafael J. Wysocki
Date: Fri Jun 08 2018 - 05:16:01 EST


On Friday, June 8, 2018 2:30:35 AM CEST Stephen Rothwell wrote:
>
> --Sig_/ncqmE76IGCiWNItKgM.lURc
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: quoted-printable
>
> Hi all,

Hi,

> After merging the pm tree, today's linux-next build (x86_64 allmodconfig)
> produced this warning:
>
> WARNING: vmlinux.o(.text+0xc5b83a): Section mismatch in reference from the =
> function __intel_pstate_cpu_init() to the variable .init.rodata:intel_pstat=
> e_hwp_boost_ids
> The function __intel_pstate_cpu_init() references
> the variable __initconst intel_pstate_hwp_boost_ids.
> This is often because __intel_pstate_cpu_init lacks a __initconst=20
> annotation or the annotation of intel_pstate_hwp_boost_ids is wrong.
>
> Introduced by commit
>
> f50f70793d78 ("cpufreq: intel_pstate: enable boost for Skylake Xeon")

Thanks for the report!

I've dropped the __initconst annotation from intel_pstate_hwp_boost_ids[].

Thanks,
Rafael