Skip to contentSkip to conversation

xen/drivers: remove unused pcidevs_trylock()

PATCH In review Juergen Gross 2 participants 2 messages Nov 4, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/drivers: remove unused pcidevs_trylock()

pcidevs_trylock() is used nowhere, so remove it.

---
 xen/drivers/passthrough/pci.c | 5 -----
 xen/include/xen/pci.h         | 1 -
 2 files changed, 6 deletions(-)
xen/drivers/passthrough/pci.c +0 -5
index 2a3bce1462..51e584127e 100644
@@ -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)
xen/include/xen/pci.h +0 -1
index c4d3879761..20a54a5bb4 100644
@@ -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);
Signature · 1 line
2.26.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Juergen Gross <[email protected]>
Sent: 04 November 2020 08:22
To: [email protected]
Cc: Juergen Gross <[email protected]>; Jan Beulich <[email protected]>; Paul Durrant <[email protected]>; Andrew Cooper <[email protected]>; George Dunlap <[email protected]>; Ian Jackson <[email protected]>; Julien Grall <[email protected]>; Stefano Stabellini <[email protected]>; Wei Liu <[email protected]>
Subject: [PATCH] xen/drivers: remove unused pcidevs_trylock()

Quoted 3 lines

pcidevs_trylock() is used nowhere, so remove it.