]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: kirin: Fix section mismatch warning
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 19 Sep 2018 05:38:29 +0000 (22:38 -0700)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 1 Oct 2018 16:16:23 +0000 (17:16 +0100)
commit02a243a1fea919fb1ae951a0b8bc593e7647a1fa
treee1ece5e3b4212538aa02ca7f73d81a7ce444e5c1
parentb0f4d33f6a802ad65d96d9321ea9a609f446c3b0
PCI: kirin: Fix section mismatch warning

The PCI kirin driver compilation produces the following section mismatch
warning:

WARNING: vmlinux.o(.text+0x4758cc): Section mismatch in reference from
the function kirin_pcie_probe() to the function
.init.text:kirin_add_pcie_port()
The function kirin_pcie_probe() references
the function __init kirin_add_pcie_port().
This is often because kirin_pcie_probe lacks a __init
annotation or the annotation of kirin_add_pcie_port is wrong.

Remove '__init' from kirin_add_pcie_port() to fix it.

Fixes: b1bf2f76f586 ("PCI: kirin: Add HiSilicon Kirin SoC PCIe controller driver")
Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/pcie-kirin.c