]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Sep 2019 18:21:35 +0000 (20:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Sep 2019 18:21:35 +0000 (20:21 +0200)
added patches:
pci-kirin-fix-section-mismatch-warning.patch

queue-4.14/pci-kirin-fix-section-mismatch-warning.patch [new file with mode: 0644]
queue-4.14/series

diff --git a/queue-4.14/pci-kirin-fix-section-mismatch-warning.patch b/queue-4.14/pci-kirin-fix-section-mismatch-warning.patch
new file mode 100644 (file)
index 0000000..b327a7a
--- /dev/null
@@ -0,0 +1,46 @@
+From 6870b673509779195cab300aedc844b352d9cfbc Mon Sep 17 00:00:00 2001
+From: Nathan Chancellor <natechancellor@gmail.com>
+Date: Tue, 18 Sep 2018 22:38:29 -0700
+Subject: PCI: kirin: Fix section mismatch warning
+
+From: Nathan Chancellor <natechancellor@gmail.com>
+
+commit 6870b673509779195cab300aedc844b352d9cfbc upstream.
+
+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: fc5165db245a ("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>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/pci/dwc/pcie-kirin.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/pci/dwc/pcie-kirin.c
++++ b/drivers/pci/dwc/pcie-kirin.c
+@@ -449,8 +449,8 @@ static const struct dw_pcie_host_ops kir
+       .host_init = kirin_pcie_host_init,
+ };
+-static int __init kirin_add_pcie_port(struct dw_pcie *pci,
+-                                    struct platform_device *pdev)
++static int kirin_add_pcie_port(struct dw_pcie *pci,
++                             struct platform_device *pdev)
+ {
+       pci->pp.ops = &kirin_pcie_host_ops;
index 40639476dd419ffd7e756fdd99d431debb8a20e9..ccb594670450848939115a2389728e3663db474f 100644 (file)
@@ -51,3 +51,4 @@ x86-hyper-v-fix-overflow-bug-in-fill_gva_list.patch
 keys-fix-missing-null-pointer-check-in-request_key_a.patch
 iommu-amd-flush-old-domains-in-kdump-kernel.patch
 iommu-amd-fix-race-in-increase_address_space.patch
+pci-kirin-fix-section-mismatch-warning.patch