Skip to content

Commit 421d62f

Browse files
Dr. David Alan Gilbertjgross1
authored andcommitted
xen/pciback: Remove unused pcistub_get_pci_dev
pcistub_get_pci_dev() was added in 2009 as part of: commit 30edc14 ("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>
1 parent 5c4e79e commit 421d62f

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

drivers/xen/xen-pciback/pci_stub.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -262,26 +262,6 @@ struct pci_dev *pcistub_get_pci_dev_by_slot(struct xen_pcibk_device *pdev,
262262
return found_dev;
263263
}
264264

265-
struct pci_dev *pcistub_get_pci_dev(struct xen_pcibk_device *pdev,
266-
struct pci_dev *dev)
267-
{
268-
struct pcistub_device *psdev;
269-
struct pci_dev *found_dev = NULL;
270-
unsigned long flags;
271-
272-
spin_lock_irqsave(&pcistub_devices_lock, flags);
273-
274-
list_for_each_entry(psdev, &pcistub_devices, dev_list) {
275-
if (psdev->dev == dev) {
276-
found_dev = pcistub_device_get_pci_dev(pdev, psdev);
277-
break;
278-
}
279-
}
280-
281-
spin_unlock_irqrestore(&pcistub_devices_lock, flags);
282-
return found_dev;
283-
}
284-
285265
/*
286266
* Called when:
287267
* - XenBus state has been reconfigure (pci unplug). See xen_pcibk_remove_device

drivers/xen/xen-pciback/pciback.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ extern struct list_head xen_pcibk_quirks;
6767
struct pci_dev *pcistub_get_pci_dev_by_slot(struct xen_pcibk_device *pdev,
6868
int domain, int bus,
6969
int slot, int func);
70-
struct pci_dev *pcistub_get_pci_dev(struct xen_pcibk_device *pdev,
71-
struct pci_dev *dev);
7270
void pcistub_put_pci_dev(struct pci_dev *dev);
7371

7472
static inline bool xen_pcibk_pv_support(void)

0 commit comments

Comments
 (0)