From: MengLi <meng...@windriver.com>

There is a section mismatch building warning as below:
WARNING: modpost: vmlinux.o(.text+0x6ddfac): Section
mismatch in reference from the function s32gen1_pcie_probe()
to the function .init.text:s32gen1_add_pcie_port()
Because function s32gen1_add_pcie_port() is invoked in
s32gen1_pcie_probe() that has not the __init macro, remove
__init macro from function s32gen1_add_pcie_port() and
s32gen1_add_pcie_ep() to avoid this building warning.

Signed-off-by: Meng Li <meng...@windriver.com>
---
 drivers/pci/controller/dwc/pci-s32gen1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/controller/dwc/pci-s32gen1.c 
b/drivers/pci/controller/dwc/pci-s32gen1.c
index b56b454b4312..98d11acba340 100644
--- a/drivers/pci/controller/dwc/pci-s32gen1.c
+++ b/drivers/pci/controller/dwc/pci-s32gen1.c
@@ -782,7 +782,7 @@ static int s32gen1_pcie_config_irq(int *irq_id, char 
*irq_name,
        return 0;
 }
 
-static int __init s32gen1_add_pcie_port(struct pcie_port *pp,
+static int s32gen1_add_pcie_port(struct pcie_port *pp,
                        struct platform_device *pdev)
 {
        int ret;
@@ -833,7 +833,7 @@ static struct dw_pcie_ep_ops pcie_ep_ops = {
        .raise_irq = s32gen1_pcie_ep_raise_irq,
 };
 
-static int __init s32gen1_add_pcie_ep(struct s32gen1_pcie *s32_pp,
+static int s32gen1_add_pcie_ep(struct s32gen1_pcie *s32_pp,
                                     struct platform_device *pdev)
 {
        int ret;
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9684): 
https://lists.yoctoproject.org/g/linux-yocto/message/9684
Mute This Topic: https://lists.yoctoproject.org/mt/81884434/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to