[PATCH] PCI: artpec: correct section mismatch for function artpec6_pcie_probe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Niklas Cassel <niklas.cassel@xxxxxxxx>

WARNING: drivers/pci/host/built-in.o(.data+0xb00): Section mismatch in reference from the variable artpec6_pcie_driver to the function .init.text:artpec6_pcie_probe()

Signed-off-by: Niklas Cassel <niklas.cassel@xxxxxxxx>
---
Reported by kbuild test robot.
I converted to using module_platform_driver macro in
v2 of this series, unfortunately I missed the
section mismatch warning.
Feel free to fold this into the original patch.

 drivers/pci/host/pcie-artpec6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/pcie-artpec6.c b/drivers/pci/host/pcie-artpec6.c
index 19adc77..be54fad 100644
--- a/drivers/pci/host/pcie-artpec6.c
+++ b/drivers/pci/host/pcie-artpec6.c
@@ -223,7 +223,7 @@ static int __init artpec6_add_pcie_port(struct pcie_port *pp,
 	return 0;
 }
 
-static int __init artpec6_pcie_probe(struct platform_device *pdev)
+static int artpec6_pcie_probe(struct platform_device *pdev)
 {
 	struct artpec6_pcie *artpec6_pcie;
 	struct pcie_port *pp;
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux