Skip to content

Commit

Permalink
PCI: Remove redundant pcibios_set_master() declarations
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Reviewed-by: Ingo Molnar <[email protected]>
Acked-by: Jesper Nilsson <[email protected]> 	# CRIS
Acked-by: Ralf Baechle <[email protected]>		# MIPS
  • Loading branch information
bjorn-helgaas committed Nov 8, 2017
1 parent 3ad3f8c commit 137ed9f
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions arch/alpha/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion arch/cris/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 0 additions & 2 deletions arch/frv/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions arch/mips/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions arch/mn10300/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
1 change: 0 additions & 1 deletion arch/parisc/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 0 additions & 2 deletions arch/sh/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
1 change: 0 additions & 1 deletion arch/x86/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 137ed9f

Please sign in to comment.