From: Juergen Gross Date: Fri, 6 Nov 2020 09:48:44 +0000 (+0100) Subject: PCI: remove unused pcidevs_trylock() X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~1427 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2a5f9f6a6932214fda76b9b3c03e024772882d34;p=xen.git PCI: remove unused pcidevs_trylock() pcidevs_trylock() is used nowhere, so remove it. Signed-off-by: Juergen Gross Reviewed-by: Paul Durrant --- diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 2a3bce1462..51e584127e 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -69,11 +69,6 @@ bool_t pcidevs_locked(void) return !!spin_is_locked(&_pcidevs_lock); } -bool_t pcidevs_trylock(void) -{ - return !!spin_trylock_recursive(&_pcidevs_lock); -} - static struct radix_tree_root pci_segments; static inline struct pci_seg *get_pseg(u16 seg) diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h index c4d3879761..20a54a5bb4 100644 --- a/xen/include/xen/pci.h +++ b/xen/include/xen/pci.h @@ -148,7 +148,6 @@ struct pci_dev { void pcidevs_lock(void); void pcidevs_unlock(void); bool_t __must_check pcidevs_locked(void); -bool_t __must_check pcidevs_trylock(void); bool_t pci_known_segment(u16 seg); bool_t pci_device_detect(u16 seg, u8 bus, u8 dev, u8 func);