[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] PCI: remove unused pcidevs_trylock()
commit 2a5f9f6a6932214fda76b9b3c03e024772882d34 Author: Juergen Gross <jgross@xxxxxxxx> AuthorDate: Fri Nov 6 10:48:44 2020 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri Nov 6 10:48:44 2020 +0100 PCI: remove unused pcidevs_trylock() pcidevs_trylock() is used nowhere, so remove it. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> Reviewed-by: Paul Durrant <paul@xxxxxxx> --- 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); -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |