]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xen/pciback: Remove unused pcistub_get_pci_dev
authorDr. David Alan Gilbert <linux@treblig.org>
Fri, 7 Mar 2025 00:47:36 +0000 (00:47 +0000)
committerJuergen Gross <jgross@suse.com>
Fri, 14 Mar 2025 10:19:49 +0000 (11:19 +0100)
pcistub_get_pci_dev() was added in 2009 as part of:
commit 30edc14bf39a ("xen/pciback: xen pci backend driver.")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
Message-ID: <20250307004736.291229-1-linux@treblig.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xen-pciback/pci_stub.c
drivers/xen/xen-pciback/pciback.h

index b616b7768c3b97598446d43feef7f4aa2e266440..5c2f829d5b0bb299244ed9f5b84272de0715a8ce 100644 (file)
@@ -262,26 +262,6 @@ struct pci_dev *pcistub_get_pci_dev_by_slot(struct xen_pcibk_device *pdev,
        return found_dev;
 }
 
-struct pci_dev *pcistub_get_pci_dev(struct xen_pcibk_device *pdev,
-                                   struct pci_dev *dev)
-{
-       struct pcistub_device *psdev;
-       struct pci_dev *found_dev = NULL;
-       unsigned long flags;
-
-       spin_lock_irqsave(&pcistub_devices_lock, flags);
-
-       list_for_each_entry(psdev, &pcistub_devices, dev_list) {
-               if (psdev->dev == dev) {
-                       found_dev = pcistub_device_get_pci_dev(pdev, psdev);
-                       break;
-               }
-       }
-
-       spin_unlock_irqrestore(&pcistub_devices_lock, flags);
-       return found_dev;
-}
-
 /*
  * Called when:
  *  - XenBus state has been reconfigure (pci unplug). See xen_pcibk_remove_device
index f9599ed2f2e2de5dbfcaa015bff244455795c839..b786c1f74f855f2a51423b361d3f0425ae1fb991 100644 (file)
@@ -67,8 +67,6 @@ extern struct list_head xen_pcibk_quirks;
 struct pci_dev *pcistub_get_pci_dev_by_slot(struct xen_pcibk_device *pdev,
                                            int domain, int bus,
                                            int slot, int func);
-struct pci_dev *pcistub_get_pci_dev(struct xen_pcibk_device *pdev,
-                                   struct pci_dev *dev);
 void pcistub_put_pci_dev(struct pci_dev *dev);
 
 static inline bool xen_pcibk_pv_support(void)