linux-next: build warning after merge of the pm tree
Hi all,
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_pstate_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
annotation or the annotation of intel_pstate_hwp_boost_ids is wrong.
Introduced by commit
f50f70793d78 ("cpufreq: intel_pstate: enable boost for Skylake Xeon")
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 6 lines · CEST Stephen Rothwell
--Sig_/ncqmE76IGCiWNItKgM.lURc
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printableHi all,
Hi,
Quoted 11 lines
After merging the pm tree, today's linux-next build (
x86_64allmodconfig) 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__initconstintel_pstate_hwp_boost_ids.
This is often because__intel_pstate_cpu_initlacks a __initconst=20 annotation or the annotation ofintel_pstate_hwp_boost_idsis wrong.
Quoted 3 lines
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