Skip to contentSkip to conversation

pci: rcar-gen4: Replace of_device.h with explicit of.h include

PATCH Applied Rob Herring 3 participants 4 messages Dec 7, 2023 – Dec 14, 2023

Subsystems (4)
lore
Share & tools
lore

Rob Herring

author reviewer
#0 lore raw

PATCH 1/1 pci: rcar-gen4: Replace of_device.h with explicit of.h include

The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was 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.

---
 drivers/pci/controller/dwc/pcie-rcar-gen4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/dwc/pcie-rcar-gen4.c +1 -1
index 3bc45e513b3d..2ca5b7983d62 100644
@@ -8,7 +8,7 @@
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/pci.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
Signature · 1 line
2.42.0
#1 lore raw

Hello,

Quoted 8 lines

The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was 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.

Applied to controller/rcar, thank you!

[1/1] PCI: rcar-gen4: Replace of_device.h with explicit of.h include

      https://git.kernel.org/pci/pci/c/263714f5fcf8

	Krzysztof
maintainer Reviewed-by
#2 lore raw

Hello,

Quoted 13 lines

From: Krzysztof Wilczyński, Sent: Thursday, December 14, 2023 10:33 AM

Hello,

Quoted 8 lines

The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was 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.

Quoted 5 lines

Applied to controller/rcar, thank you!

[1/1] PCI: rcar-gen4: Replace of_device.h with explicit of.h include

https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?id=263714f5fcf8

Thank you! I completely overlooked this patch. Maybe it's too late, but I also reviewed this patch, so

It's up to you whether my tag is added to the commit or not :)

Best regards,
Yoshihiro Shimoda

Quoted 1 line

Krzysztof

#3 lore raw

Hello,

Quoted 13 lines
Quoted 13 lines
Quoted 8 lines

The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was 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.

Applied to controller/rcar, thank you!

[1/1] PCI: rcar-gen4: Replace of_device.h with explicit of.h include

Quoted 7 lines
Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?id=263714f5fcf8

Thank you! I completely overlooked this patch. Maybe it's too late, but I also reviewed this patch, so

It's up to you whether my tag is added to the commit or not :)

No worries. Never too late for a good review. :)

As such, I added your Reviewed-by, so it should be there, per:

https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=controller/rcar&id=ec215237480478ca5523ea12f58803d9b7a8a0ea

Krzysztof