Centos-kernel-stream-9/drivers/pci
Lucas Zampieri 15f74fa25c Merge: PCI: endpoint: remove bogus return in pci_epf_device_remove()
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4682

Upstream Status: RHEL Only  
JIRA: https://issues.redhat.com/browse/RHEL-47218  

When upstream commit fc7a6209d571 ("bus: Make remove callback return  
void") was backported into CS9 via commit a5384e8ee5 ("bus: Make  
remove callback return void"), the 'return 0' was not included for  
this driver. This is causing the following compiler error now that  
this driver is enabled:  

    drivers/pci/endpoint/pci-epf-core.c: In function ‘pci_epf_device_remove’:  
    drivers/pci/endpoint/pci-epf-core.c:509:16: error: ‘return’ with a value, in function returning void [-Werror=return-type]  
      509 |         return 0;  
          |                ^  
    drivers/pci/endpoint/pci-epf-core.c:500:13: note: declared here  
      500 | static void pci_epf_device_remove(struct device *dev)  
          |             ^~~~~~~~~~~~~~~~~~~~~  

Let's fix this by adding the 'return 0' that was missing from that  
backport.  

Fixes: a5384e8ee5 ("bus: Make remove callback return void")  
Signed-off-by: Brian Masney <bmasney@redhat.com>  
(cherry picked from commit 349ae41a2a)  
Signed-off-by: Radu Rendec <rrendec@redhat.com>

Approved-by: John W. Linville <linville@redhat.com>
Approved-by: Myron Stowe <mstowe@redhat.com>
Approved-by: Brian Masney <bmasney@redhat.com>
Approved-by: Eric Chanudet <echanude@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: Lucas Zampieri <lzampier@redhat.com>
2024-08-12 15:50:44 +00:00
..
controller Merge: USB/TB code rebase of supported drivers to upstream v6.8 2024-06-03 19:41:30 +00:00
endpoint PCI: endpoint: remove bogus return in pci_epf_device_remove() 2024-07-11 12:28:43 -04:00
hotplug PCI: pciehp: Retain Power Indicator bits for userspace indicators 2024-07-29 12:22:38 -06:00
msi PCI/MSI: Fix UAF in msi_capability_init 2024-07-31 10:34:14 -04:00
pcie PCI/ASPM: Restore parent state to parent, child state to child 2024-05-13 15:56:48 -06:00
switch PCI: switchtec: Fix an error handling path in switchtec_pci_probe() 2024-05-13 15:56:21 -06:00
Kconfig PCI: Move pci_iomap.c to drivers/pci/ 2024-05-13 15:52:32 -06:00
Makefile PCI/sysfs: Compile pci-sysfs.c only if CONFIG_SYSFS=y 2024-05-13 15:56:46 -06:00
access.c PCI: Move pci_clear_and_set_dword() helper to PCI header 2024-05-13 15:49:50 -06:00
ats.c
bus.c
devres.c PCI: Move devres code from pci.c to devres.c 2024-05-13 15:52:32 -06:00
doe.c PCI/DOE: Create mailboxes on device enumeration 2024-06-27 12:46:26 -04:00
ecam.c
host-bridge.c
iomap.c PCI: Move pci_iomap.c to drivers/pci/ 2024-05-13 15:52:32 -06:00
iov.c PCI: Use resource names in PCI log messages 2024-03-30 14:55:37 -06:00
irq.c PCI: Place interrupt related code into irq.c 2024-05-13 15:55:19 -06:00
mmap.c PCI/sysfs: Compile pci-sysfs.c only if CONFIG_SYSFS=y 2024-05-13 15:56:46 -06:00
of.c
p2pdma.c PCI/P2PDMA: Fix a sleeping issue in a RCU read section 2024-05-13 15:56:21 -06:00
pci-acpi.c
pci-bridge-emul.c
pci-bridge-emul.h
pci-driver.c Merge: Update kernel's PCI subsystem to v6.9 2024-05-21 13:14:57 +00:00
pci-label.c
pci-mid.c
pci-pf-stub.c
pci-stub.c
pci-sysfs.c PCI/sysfs: Demacrofy pci_dev_resource_resize_attr(n) functions 2024-05-13 15:56:47 -06:00
pci.c PCI: Place interrupt related code into irq.c 2024-05-13 15:55:19 -06:00
pci.h PCI/DOE: Create mailboxes on device enumeration 2024-06-27 12:46:26 -04:00
probe.c Merge: PCI: Clear Secondary Status errors after enumeration 2024-07-22 14:41:14 +00:00
proc.c
quirks.c PCI: Mark 3ware-9650SE Root Port Extended Tags as broken 2024-05-13 15:56:21 -06:00
remove.c PCI/DOE: Create mailboxes on device enumeration 2024-06-27 12:46:26 -04:00
rom.c
search.c
setup-bus.c PCI: Use resource names in PCI log messages 2024-03-30 14:55:37 -06:00
setup-res.c PCI: Use resource names in PCI log messages 2024-03-30 14:55:37 -06:00
slot.c
syscall.c
vc.c
vgaarb.c
vpd.c
xen-pcifront.c