kernel_samsung_a53x/drivers/pci/controller
Nathan Chancellor 67135b8aee PCI: keystone: Drop __init from ks_pcie_add_pcie_{ep,port}()
This commit has no upstream equivalent.

After commit db5ebaeb8fda ("PCI: keystone: Don't discard .probe()
callback") in 5.10.202, there are two modpost warnings when building with
clang:

  WARNING: modpost: vmlinux.o(.text+0x5aa6dc): Section mismatch in reference from the function ks_pcie_probe() to the function .init.text:ks_pcie_add_pcie_port()
  The function ks_pcie_probe() references
  the function __init ks_pcie_add_pcie_port().
  This is often because ks_pcie_probe lacks a __init
  annotation or the annotation of ks_pcie_add_pcie_port is wrong.

  WARNING: modpost: vmlinux.o(.text+0x5aa6f4): Section mismatch in reference from the function ks_pcie_probe() to the function .init.text:ks_pcie_add_pcie_ep()
  The function ks_pcie_probe() references
  the function __init ks_pcie_add_pcie_ep().
  This is often because ks_pcie_probe lacks a __init
  annotation or the annotation of ks_pcie_add_pcie_ep is wrong.

ks_pcie_add_pcie_ep() was removed in upstream commit a0fd361db8e5 ("PCI:
dwc: Move "dbi", "dbi2", and "addr_space" resource setup into common
code") and ks_pcie_add_pcie_port() was removed in upstream
commit 60f5b73fa0f2 ("PCI: dwc: Remove unnecessary wrappers around
dw_pcie_host_init()"), both of which happened before upstream
commit 7994db905c0f ("PCI: keystone: Don't discard .probe() callback").

As neither of these removal changes are really suitable for stable, just
remove __init from these functions in stable, as it is no longer a
correct annotation after dropping __init from ks_pcie_probe().

Fixes: 012dba0ab814 ("PCI: keystone: Don't discard .probe() callback")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:10:54 +01:00
..
cadence Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc PCI: keystone: Drop __init from ks_pcie_add_pcie_{ep,port}() 2024-11-18 12:10:54 +01:00
mobiveil Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-aardvark.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-ftpci100.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-host-common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-host-generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-hyperv-intf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-hyperv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-loongson.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-mvebu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-rcar-gen2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-tegra.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-thunder-ecam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-thunder-pem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-v3-semi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-versatile.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-xgene-msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-xgene.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-altera-msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-altera.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-brcmstb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-hisi-error.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc-bcma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc-msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc-platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-mediatek.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rcar-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rcar-host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rcar.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rcar.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip-host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-tango.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-xilinx-cpm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-xilinx-nwl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-xilinx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00