]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PCI: Remove redundant pci_dev, pci_bus, resource declarations
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 4 Oct 2017 20:15:22 +0000 (15:15 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 8 Nov 2017 00:38:48 +0000 (18:38 -0600)
<linux/pci.h> defines struct pci_bus and struct pci_dev and includes the
struct resource definition before including <asm/pci.h>.  Nobody includes
<asm/pci.h> directly, so they don't need their own declarations.

Remove the redundant struct pci_dev, pci_bus, resource declarations.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
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/ia64/include/asm/pci.h
arch/mips/include/asm/pci.h
arch/mn10300/include/asm/pci.h
arch/parisc/include/asm/pci.h
arch/powerpc/include/asm/pci.h
arch/sh/include/asm/pci.h
arch/sparc/include/asm/pci_32.h
arch/xtensa/include/asm/pci.h

index 777be3114fda3944569fe88904b3222596b067da..0a10ff93b174e002355f92a3a578e699e14b5582 100644 (file)
@@ -12,9 +12,6 @@
  * The following structure is used to manage multiple PCI busses.
  */
 
-struct pci_dev;
-struct pci_bus;
-struct resource;
 struct pci_iommu_arena;
 struct page;
 
index c6ac59d9f8157a0d0fe85c4092866ebe3df3c72d..8ea640560a46db26e963363b5d18a588bc9e2a6c 100644 (file)
@@ -32,8 +32,6 @@ int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq);
 #include <linux/string.h>
 #include <asm/io.h>
 
-struct pci_dev;
-
 /* The PCI address space does equal the physical memory
  * address space.  The networking and block device layers use
  * this boolean for bounce buffer decisions.
index a6957014e74e9e56766d0212cde387d2af944c99..895af9d558bacaebd9e9068c42212d709861bc3e 100644 (file)
@@ -17,8 +17,6 @@
 #include <linux/scatterlist.h>
 #include <asm-generic/pci.h>
 
-struct pci_dev;
-
 #define pcibios_assign_all_busses()    0
 
 #ifdef CONFIG_MMU
index 6459f2d46200581b2b5288a54aab090cde2d20d1..8c4b37f6be3d527f07eea2ae953d75b17cc8fb59 100644 (file)
@@ -31,8 +31,6 @@ struct pci_vector_struct {
 
 void pcibios_config_init(void);
 
-struct pci_dev;
-
 /*
  * PCI_DMA_BUS_IS_PHYS should be set to 1 if there is _necessarily_ a direct
  * correspondence between device bus addresses and CPU physical addresses.
index 0f8528c34753b844b8286d60c05572ad36f4310d..2339f42f047ac38097682dc9c82acd4da7c17f6f 100644 (file)
@@ -121,8 +121,6 @@ extern unsigned long PCIBIOS_MIN_MEM;
 #include <linux/string.h>
 #include <asm/io.h>
 
-struct pci_dev;
-
 /*
  * The PCI address space does equal the physical memory address space.
  * The networking and block device layers use this boolean for bounce
index bdacb618d6afb3c0ddc9ce3b9b10da42888a46f6..5b75a1b2c4f6213bbf3b4a952c89689cb5b1dc8f 100644 (file)
@@ -57,8 +57,6 @@ extern void unit_pci_init(void);
 #include <linux/string.h>
 #include <asm/io.h>
 
-struct pci_dev;
-
 /* The PCI address space does equal the physical memory
  * address space.  The networking and block device layers use
  * this boolean for bounce buffer decisions.
index b5730f83b941072073ced5764a80e66b60269722..8cc009e26a28d3277b951e967cdaac6cc4e532eb 100644 (file)
@@ -86,13 +86,6 @@ struct pci_hba_data {
 #define PCI_F_EXTEND           0UL
 #endif /* !CONFIG_64BIT */
 
-/*
-** KLUGE: linux/pci.h include asm/pci.h BEFORE declaring struct pci_bus
-** (This eliminates some of the warnings).
-*/
-struct pci_bus;
-struct pci_dev;
-
 /*
  * If the PCI device's view of memory is the same as the CPU's view of memory,
  * PCI_DMA_BUS_IS_PHYS is true.  The networking and block device layers use
index c8975dac535fc7ea907bc7577b13aee8fd989a8a..8dc32eacc97c8acbebefeef081ccc5367c545cae 100644 (file)
@@ -28,8 +28,6 @@
 #define PCIBIOS_MIN_IO         0x1000
 #define PCIBIOS_MIN_MEM                0x10000000
 
-struct pci_dev;
-
 /* Values for the `which' argument to sys_pciconfig_iobase syscall.  */
 #define IOBASE_BRIDGE_NUMBER   0
 #define IOBASE_MEMORY          1
index 063c8003b1699990346c780d52e82cf91e8c5f76..6c2d68e08a57880de190c53058d4cabceeeb0ad9 100644 (file)
@@ -63,8 +63,6 @@ extern int pci_is_66mhz_capable(struct pci_channel *hose,
 
 extern unsigned long PCIBIOS_MIN_IO, PCIBIOS_MIN_MEM;
 
-struct pci_dev;
-
 #define HAVE_PCI_MMAP
 #define ARCH_GENERIC_PCI_MMAP_RESOURCE
 
index b7c092df31340cf146c4301e4f8de1aa39d2a764..8b0e26232c78f3f68d8e3518d2af3927afa624d8 100644 (file)
@@ -20,8 +20,6 @@
  */
 #define PCI_DMA_BUS_IS_PHYS    (0)
 
-struct pci_dev;
-
 #endif /* __KERNEL__ */
 
 #ifndef CONFIG_LEON_PCI
index e4f366a488d3dc2fd7ba292d7ae4e2ccbe1fcae3..5c83798e3b2e2ca8c9173861a660bd6621567dd0 100644 (file)
@@ -37,8 +37,6 @@ extern struct pci_controller* pcibios_alloc_controller(void);
 #include <linux/string.h>
 #include <asm/io.h>
 
-struct pci_dev;
-
 /* The PCI address space does equal the physical memory address space.
  * The networking and block device layers use this boolean for bounce buffer
  * decisions.