[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] xen/drivers: remove unused pcidevs_trylock()
pcidevs_trylock() is used nowhere, so remove it. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> --- xen/drivers/passthrough/pci.c | 5 ----- xen/include/xen/pci.h | 1 - 2 files changed, 6 deletions(-) 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); -- 2.26.2
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |