PCI: remove unused pcidevs_trylock()

pcidevs_trylock() is used nowhere, so remove it.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
This commit is contained in:
Juergen Gross authored and Jan Beulich committed 2020-11-06 10:48:44 +01:00
1 parent e19bcb626f
commit 2a5f9f6a69
2 files changed
-6

No files matched your search

-5
View File
@@ -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)
-1
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.