Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Jun 8, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 6 lines · CEST Stephen Rothwell

--Sig_/ncqmE76IGCiWNItKgM.lURc
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi all,

Hi,

Quoted 11 lines

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.

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