PCI: Remove unused includes and superfluous struct declaration
authorKrzysztof Wilczynski <kw@linux.com>
Tue, 3 Sep 2019 11:30:59 +0000 (13:30 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 21 Nov 2019 13:49:29 +0000 (07:49 -0600)
Remove <linux/pci.h> and <linux/msi.h> from being included directly as part
of the include/linux/of_pci.h, and remove superfluous declaration of struct
of_phandle_args.

Move users of include <linux/of_pci.h> to include <linux/pci.h> and
<linux/msi.h> directly rather than rely on both being included transitively
through <linux/of_pci.h>.

Link: https://lore.kernel.org/r/20190903113059.2901-1-kw@linux.com
Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
drivers/iommu/of_iommu.c
drivers/irqchip/irq-gic-v2m.c
drivers/irqchip/irq-gic-v3-its-pci-msi.c
drivers/pci/controller/dwc/pcie-designware-host.c
drivers/pci/controller/pci-aardvark.c
drivers/pci/controller/pci-thunder-pem.c
drivers/pci/pci.c
drivers/pci/probe.c
include/linux/of_pci.h

index 614a93aa5305a83d6bf6662f6c236aa7e25d3d68..026ad2b29dcd549f0b6e8681b96a2ff89dcfe935 100644 (file)
@@ -8,6 +8,8 @@
 #include <linux/export.h>
 #include <linux/iommu.h>
 #include <linux/limits.h>
+#include <linux/pci.h>
+#include <linux/msi.h>
 #include <linux/of.h>
 #include <linux/of_iommu.h>
 #include <linux/of_pci.h>
index e88e75c22b6a084d9bad7d891b1129d3f899001e..fbec07d634ad28855d870d97ec51e51e100e3ffe 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/irq.h>
 #include <linux/irqdomain.h>
 #include <linux/kernel.h>
+#include <linux/pci.h>
 #include <linux/msi.h>
 #include <linux/of_address.h>
 #include <linux/of_pci.h>
index 229d586c3d7ae1c894f18f4765b99649394c300e..87711e0f8014068771dc5b72f650d0cbf6acdc19 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <linux/acpi_iort.h>
+#include <linux/pci.h>
 #include <linux/msi.h>
 #include <linux/of.h>
 #include <linux/of_irq.h>
index 0f36a926059a14d65b5e7103f317b8022ff2e99e..43ce6de703745de10f83875806251677c9a9746d 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <linux/irqchip/chained_irq.h>
 #include <linux/irqdomain.h>
+#include <linux/msi.h>
 #include <linux/of_address.h>
 #include <linux/of_pci.h>
 #include <linux/pci_regs.h>
index fc0fe4d4de49e9f2435fe5251276d92e5582d0d5..3a05f6ca95b0099d669f52569209ea1279a5d87c 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/pci.h>
 #include <linux/init.h>
 #include <linux/platform_device.h>
+#include <linux/msi.h>
 #include <linux/of_address.h>
 #include <linux/of_pci.h>
 
index f127ce8bd4ef37538929c1a1bfd56550b2365988..9491e266b1ea0a7122ecfc9ad33cf2c5bbbb7da9 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/bitfield.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
+#include <linux/pci.h>
 #include <linux/of_address.h>
 #include <linux/of_pci.h>
 #include <linux/pci-acpi.h>
index e7982af9a5d86efd738640fbe08dba01e4704155..2d36995e4ea5e384cf3bbba4b0379bd43b4dfb72 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/delay.h>
 #include <linux/dmi.h>
 #include <linux/init.h>
+#include <linux/msi.h>
 #include <linux/of.h>
 #include <linux/of_pci.h>
 #include <linux/pci.h>
index 3d5271a7a849dbffb8ea80f515f87dbf7e33f04f..7c5d68b807efea4b4ae35d1d151ad0343083e443 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/delay.h>
 #include <linux/init.h>
 #include <linux/pci.h>
+#include <linux/msi.h>
 #include <linux/of_device.h>
 #include <linux/of_pci.h>
 #include <linux/pci_hotplug.h>
index 21a89c4880fa63dc20afe0383a1cb1f50e917c95..29658c0ee71ff10122760214d04ee2bab01709fd 100644 (file)
@@ -2,11 +2,10 @@
 #ifndef __OF_PCI_H
 #define __OF_PCI_H
 
-#include <linux/pci.h>
-#include <linux/msi.h>
+#include <linux/types.h>
+#include <linux/errno.h>
 
 struct pci_dev;
-struct of_phandle_args;
 struct device_node;
 
 #if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_PCI)