Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen/pciback: Remove unused pcistub_get_pci_dev

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>

authored by

Dr. David Alan Gilbert and committed by
Juergen Gross
421d62f4 5c4e79e2

-22
-20
drivers/xen/xen-pciback/pci_stub.c
··· 262 262 return found_dev; 263 263 } 264 264 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 - 285 265 /* 286 266 * Called when: 287 267 * - XenBus state has been reconfigure (pci unplug). See xen_pcibk_remove_device
-2
drivers/xen/xen-pciback/pciback.h
··· 67 67 struct pci_dev *pcistub_get_pci_dev_by_slot(struct xen_pcibk_device *pdev, 68 68 int domain, int bus, 69 69 int slot, int func); 70 - struct pci_dev *pcistub_get_pci_dev(struct xen_pcibk_device *pdev, 71 - struct pci_dev *dev); 72 70 void pcistub_put_pci_dev(struct pci_dev *dev); 73 71 74 72 static inline bool xen_pcibk_pv_support(void)