kernel_samsung_a53x/drivers/pci
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
..
controller PCI: keystone: Drop __init from ks_pcie_add_pcie_{ep,port}() 2024-11-18 12:10:54 +01:00
endpoint Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hotplug Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie PCI/ASPM: Fix L1 substate handling in aspm_attr_store_common() 2024-11-18 11:43:22 +01:00
switch Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
access.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
host-bridge.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iov.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq.c 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
mmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
of.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
p2pdma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-acpi.c PCI/sysfs: Protect driver's D3cold preference from user space 2024-11-18 11:43:21 +01:00
pci-bridge-emul.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-bridge-emul.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-driver.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-label.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-mid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-pf-stub.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-stub.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-sysfs.c PCI/sysfs: Protect driver's D3cold preference from user space 2024-11-18 11:43:21 +01:00
pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
probe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
quirks.c PCI: Prevent xHCI driver from claiming AMD VanGogh USB3 DRD device 2024-11-18 10:58:47 +01:00
remove.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
search.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
setup-bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
setup-irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
setup-res.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
slot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscall.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vpd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xen-pcifront.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00