Centos-kernel-stream-9/drivers/pci/endpoint
Brian Masney b251c1c839 PCI: endpoint: remove bogus return in pci_epf_device_remove()
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>
2024-07-11 12:28:43 -04:00
..
functions PCI: endpoint: Clean up hardware description for BARs 2024-05-13 15:56:48 -06:00
Kconfig
Makefile
pci-ep-cfs.c PCI: endpoint: Return error if EPC is started/stopped multiple times 2023-09-19 13:32:23 -06:00
pci-epc-core.c PCI: endpoint: Drop only_64bit on reserved BARs 2024-05-13 15:56:48 -06:00
pci-epc-mem.c PCI: endpoint: Add kernel-doc for pci_epc_mem_init() API 2023-12-15 16:22:26 -07:00
pci-epf-core.c PCI: endpoint: remove bogus return in pci_epf_device_remove() 2024-07-11 12:28:43 -04:00