PCI: Remove redundant pcibios_set_master() declarations
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 28 Sep 2017 22:02:42 +0000 (17:02 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 8 Nov 2017 00:38:47 +0000 (18:38 -0600)
All users of pcibios_set_master() include <linux/pci.h>, which already has
a declaration.  Remove the unnecessary declarations from the <asm/pci.h>
files.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> # CRIS
Acked-by: Ralf Baechle <ralf@linux-mips.org> # MIPS
arch/alpha/include/asm/pci.h
arch/cris/include/asm/pci.h
arch/frv/include/asm/pci.h
arch/mips/include/asm/pci.h
arch/mn10300/include/asm/pci.h
arch/parisc/include/asm/pci.h
arch/sh/include/asm/pci.h
arch/x86/include/asm/pci.h

index a06c24b3a2e13baaca1a4f41f16544a012f009a9..777be3114fda3944569fe88904b3222596b067da 100644 (file)
@@ -56,8 +56,6 @@ struct pci_controller {
 #define PCIBIOS_MIN_IO         alpha_mv.min_io_address
 #define PCIBIOS_MIN_MEM                alpha_mv.min_mem_address
 
-extern void pcibios_set_master(struct pci_dev *dev);
-
 /* IOMMU controls.  */
 
 /* The PCI address space does not equal the physical memory address space.
index 6e505332b3e36d165a960e222e9593994c7eaf83..c6ac59d9f8157a0d0fe85c4092866ebe3df3c72d 100644 (file)
@@ -19,7 +19,6 @@
 void pcibios_config_init(void);
 struct pci_bus * pcibios_scan_root(int bus);
 
-void pcibios_set_master(struct pci_dev *dev);
 struct irq_routing_table *pcibios_get_irq_routing_table(void);
 int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq);
 
index 809cfc6707abf4f2402c0ae1e856cbca76ca211b..a6957014e74e9e56766d0212cde387d2af944c99 100644 (file)
@@ -21,8 +21,6 @@ struct pci_dev;
 
 #define pcibios_assign_all_busses()    0
 
-extern void pcibios_set_master(struct pci_dev *dev);
-
 #ifdef CONFIG_MMU
 extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle);
 extern void consistent_free(void *vaddr);
index 52f551ee492de2e385d97c138cfd262f4b351af1..0f8528c34753b844b8286d60c05572ad36f4310d 100644 (file)
@@ -106,8 +106,6 @@ extern unsigned long PCIBIOS_MIN_MEM;
 
 #define PCIBIOS_MIN_CARDBUS_IO 0x4000
 
-extern void pcibios_set_master(struct pci_dev *dev);
-
 #define HAVE_PCI_MMAP
 #define ARCH_GENERIC_PCI_MMAP_RESOURCE
 #define HAVE_ARCH_PCI_RESOURCE_TO_USER
index d27654902f28bd5bd8f7b4acae66f744041d8700..bdacb618d6afb3c0ddc9ce3b9b10da42888a46f6 100644 (file)
@@ -47,8 +47,6 @@ extern void unit_pci_init(void);
 #define PCIBIOS_MIN_IO         0xBE000004
 #define PCIBIOS_MIN_MEM                0xB8000000
 
-void pcibios_set_master(struct pci_dev *dev);
-
 /* Dynamic DMA mapping stuff.
  * i386 has everything mapped statically.
  */
index 1de1a3f412ec142514d76bbb0edfda171fb0f510..b5730f83b941072073ced5764a80e66b60269722 100644 (file)
@@ -161,7 +161,6 @@ extern struct pci_bios_ops *pci_bios;
 
 #ifdef CONFIG_PCI
 extern void pcibios_register_hba(struct pci_hba_data *);
-extern void pcibios_set_master(struct pci_dev *);
 #else
 static inline void pcibios_register_hba(struct pci_hba_data *x)
 {
index 17fa69bc814d7967e33ba119202428142ab50343..063c8003b1699990346c780d52e82cf91e8c5f76 100644 (file)
@@ -68,8 +68,6 @@ struct pci_dev;
 #define HAVE_PCI_MMAP
 #define ARCH_GENERIC_PCI_MMAP_RESOURCE
 
-extern void pcibios_set_master(struct pci_dev *dev);
-
 /* Dynamic DMA mapping stuff.
  * SuperH has everything mapped statically like x86.
  */
index 473a7295ab1028cc82a105476c3fee2597fdaa3e..645019085bb8f034e7304962258b3fbb3963e6b6 100644 (file)
@@ -91,7 +91,6 @@ extern int pcibios_enabled;
 void pcibios_config_init(void);
 void pcibios_scan_root(int bus);
 
-void pcibios_set_master(struct pci_dev *dev);
 struct irq_routing_table *pcibios_get_irq_routing_table(void);
 int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq);