iommu: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 14 Jul 2023 17:46:39 +0000 (11:46 -0600)
committerJoerg Roedel <jroedel@suse.de>
Mon, 21 Aug 2023 12:17:59 +0000 (14:17 +0200)
The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20230714174640.4058404-1-robh@kernel.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom-debug.c
drivers/iommu/arm/arm-smmu/arm-smmu.c
drivers/iommu/arm/arm-smmu/qcom_iommu.c
drivers/iommu/ipmmu-vmsa.c
drivers/iommu/sprd-iommu.c
drivers/iommu/tegra-smmu.c
drivers/iommu/virtio-iommu.c

index b5b14108e086a9ac107ea265ec90dcdad91b5d85..bb89d49adf8d2164a03d29be6f94c6252346f0ea 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  */
 
-#include <linux/of_device.h>
+#include <linux/device.h>
 #include <linux/firmware/qcom/qcom_scm.h>
 #include <linux/ratelimit.h>
 
index a86acd76c1dfb43b3475a11d632011feedadfac4..d6d1a2a55cc0692fb02f0f58b901ac438c71604c 100644 (file)
@@ -29,7 +29,6 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
 #include <linux/pci.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
index a503ed758ec3029ed75c74ab7ef8c55e846991c1..cc3f68a3516c7ae6e743c59ed4fe7812475432e5 100644 (file)
@@ -22,8 +22,7 @@
 #include <linux/init.h>
 #include <linux/mutex.h>
 #include <linux/of.h>
-#include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/pm.h>
 #include <linux/pm_runtime.h>
index 9f64c5c9f5b90ace00aff6ec7b7281bfd68d22eb..0aeedd3e14941714d4b0054975fd7b93cea97b55 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/io-pgtable.h>
 #include <linux/iommu.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/sizes.h>
index 39e34fdeccda7842fa1ff677b4b0949c6ddbd120..51144c232474fc633900f6b9438d7e870eca62e2 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/mfd/syscon.h>
 #include <linux/module.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
 
index 1cbf063ccf147ad9944fc34965dda5791d51ee50..e445f80d02263b405f9ed9a8218418dd6c9585a5 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/iommu.h>
 #include <linux/kernel.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/pci.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
index 3551ed057774e648311f8c3f8ca71fb09f32161b..17dcd826f5c20e16b62daf837c2dc88ad5275d5f 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/interval_tree.h>
 #include <linux/iommu.h>
 #include <linux/module.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
 #include <linux/pci.h>
 #include <linux/virtio.h>
 #include <linux/virtio_config.h>