linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: Remove functions not called in include/linux/pci.h
@ 2019-07-15 17:56 Kelsey
  2019-07-15 18:13 ` [PATCH v2] " Kelsey Skunberg
  0 siblings, 1 reply; 9+ messages in thread
From: Kelsey @ 2019-07-15 17:56 UTC (permalink / raw)
  To: bhelgaas, linux-pci, linux-kernel
  Cc: skhan, linux-kernel-mentees, skunberg.kelsey

Remove the following uncalled functions from include/linux/pci.h:

	pci_block_cfg_access()
	pci_block_cfg_access_in_atomic()
	pci_unblock_cfg_access()

Functions were added in patch fb51ccbf217c "PCI: Rework config space
blocking services", though no callers were added. Code continues to be
unused and should be removed.

Signed-off-by: Kelsey <skunberg.kelsey@gmail.com>
---
 include/linux/pci.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/include/linux/pci.h b/include/linux/pci.h
index cf380544c700..3c9ba6133bea 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1656,11 +1656,6 @@ static inline void pci_release_regions(struct pci_dev *dev) { }
 
 static inline unsigned long pci_address_to_pio(phys_addr_t addr) { return -1; }
 
-static inline void pci_block_cfg_access(struct pci_dev *dev) { }
-static inline int pci_block_cfg_access_in_atomic(struct pci_dev *dev)
-{ return 0; }
-static inline void pci_unblock_cfg_access(struct pci_dev *dev) { }
-
 static inline struct pci_bus *pci_find_next_bus(const struct pci_bus *from)
 { return NULL; }
 static inline struct pci_dev *pci_get_slot(struct pci_bus *bus,
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-23 23:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-15 17:56 [PATCH] PCI: Remove functions not called in include/linux/pci.h Kelsey
2019-07-15 18:13 ` [PATCH v2] " Kelsey Skunberg
2019-07-15 19:42   ` [Linux-kernel-mentees] " Lukas Bulwahn
2019-07-15 20:19     ` Kelsey Skunberg
2019-07-15 23:37     ` Bjorn Helgaas
2019-07-16  3:57       ` Kelsey Skunberg
2019-07-15 20:34   ` [PATCH v3] " Kelsey Skunberg
2019-07-16  4:58     ` [Linux-kernel-mentees] " Lukas Bulwahn
2019-07-23 23:34     ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).