Skip to contentSkip to conversation

powerpc/fsl-pci: Fix section mismatch warning

PATCH Applied Michael Ellerman 2 participants 2 messages Mar 14, 2021 – Mar 31, 2021 PowerPC

lore
Share & tools
lore

Michael Ellerman

author reviewer
#0 lore raw

PATCH 1/1 powerpc/fsl-pci: Fix section mismatch warning

Section mismatch in reference from the function .fsl_add_bridge() to the function .init.text:.setup_pci_cmd()

fsl_add_bridge() is not __init, and can't be, and is the only caller of setup_pci_cmd(). Fix it by making setup_pci_cmd() non-init.

---
 arch/powerpc/sysdev/fsl_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/sysdev/fsl_pci.c +1 -1
index 040b9d01c079..69af73765783 100644
@@ -455,7 +455,7 @@ static void setup_pci_atmu(struct pci_controller *hose)
 	}
 }
 
-static void __init setup_pci_cmd(struct pci_controller *hose)
+static void setup_pci_cmd(struct pci_controller *hose)
 {
 	u16 cmd;
 	int cap_x;
Signature · 1 line
2.25.1
#1 lore raw
Quoted 5 lines · Michael Ellerman

Section mismatch in reference from the function .fsl_add_bridge() to the function .init.text:.setup_pci_cmd()

fsl_add_bridge() is not __init, and can't be, and is the only caller of setup_pci_cmd(). Fix it by making setup_pci_cmd() non-init.

Applied to powerpc/next.

[1/1] powerpc/fsl-pci: Fix section mismatch warning

      https://git.kernel.org/powerpc/c/b77878052a142737522e0e3c2a621c988a4cd7cd

cheers