]> git.baikalelectronics.ru Git - kernel.git/commit
base: arch_topology: fix section mismatch build warnings
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 7 Sep 2017 14:16:05 +0000 (15:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 15:05:07 +0000 (17:05 +0200)
commit8acd92a2b87cef564508338b974fa638e8782492
tree1ba8512ab0117325978320f0b3cb8f9356d36c0e
parent311fc1f07a34638410436df6b33b9ae78793986f
base: arch_topology: fix section mismatch build warnings

Commit 1e3fcf708543 ("arm, arm64: factorize common cpu capacity default code")
introduced init_cpu_capacity_callback and init_cpu_capacity_notifier
which are referenced from initcall and are missing __init{,data}
annotations resulting the below section mismatch build warnings.

"WARNING: vmlinux.o(.text+0xbab790): Section mismatch in reference from
the function init_cpu_capacity_callback() to the variable .init.text:$x
The function init_cpu_capacity_callback() references the variable
__init $x. This is often because init_cpu_capacity_callback lacks a
__init annotation or the annotation of $x is wrong."

This patch fixes the above build warnings by adding the required annotations.

Fixes: 1e3fcf708543 ("arm, arm64: factorize common cpu capacity default code")
Cc: Juri Lelli <juri.lelli@arm.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/arch_topology.c