Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0b75b6e authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Alistair Delva
Browse files

UPSTREAM: 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: fc5165db ("PCI: kirin: Add HiSilicon Kirin SoC PCIe controller driver")
Reported-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
(cherry picked from commit 6870b673509779195cab300aedc844b352d9cfbc)
Bug: 141265942
Change-Id: I2900414ea17716ff460032df9f21bd5a4f9a7b94
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
parent 10d56e55
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -467,7 +467,7 @@ static int kirin_pcie_add_msi(struct dw_pcie *pci,
	return 0;
}

static int __init kirin_add_pcie_port(struct dw_pcie *pci,
static int kirin_add_pcie_port(struct dw_pcie *pci,
			       struct platform_device *pdev)
{
	int ret;