* [PATCH] pci: rcar-gen4: Replace of_device.h with explicit of.h include
@ 2023-12-07 16:52 Rob Herring
2023-12-14 1:33 ` Krzysztof Wilczyński
0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2023-12-07 16:52 UTC (permalink / raw)
To: Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi,
Krzysztof Wilczyński, Bjorn Helgaas
Cc: linux-pci, linux-renesas-soc, linux-kernel
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.
Signed-off-by: Rob Herring <robh@kernel.org>
---
drivers/pci/controller/dwc/pcie-rcar-gen4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/controller/dwc/pcie-rcar-gen4.c b/drivers/pci/controller/dwc/pcie-rcar-gen4.c
index 3bc45e513b3d..2ca5b7983d62 100644
--- a/drivers/pci/controller/dwc/pcie-rcar-gen4.c
+++ b/drivers/pci/controller/dwc/pcie-rcar-gen4.c
@@ -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>
--
2.42.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] pci: rcar-gen4: Replace of_device.h with explicit of.h include
2023-12-07 16:52 [PATCH] pci: rcar-gen4: Replace of_device.h with explicit of.h include Rob Herring
@ 2023-12-14 1:33 ` Krzysztof Wilczyński
2023-12-14 2:28 ` Yoshihiro Shimoda
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Wilczyński @ 2023-12-14 1:33 UTC (permalink / raw)
To: Rob Herring
Cc: Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi, Bjorn Helgaas,
linux-pci, linux-renesas-soc, linux-kernel
Hello,
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] pci: rcar-gen4: Replace of_device.h with explicit of.h include
2023-12-14 1:33 ` Krzysztof Wilczyński
@ 2023-12-14 2:28 ` Yoshihiro Shimoda
2023-12-14 19:22 ` Krzysztof Wilczyński
0 siblings, 1 reply; 4+ messages in thread
From: Yoshihiro Shimoda @ 2023-12-14 2:28 UTC (permalink / raw)
To: Krzysztof Wilczyński, Rob Herring
Cc: Marek Vasut, Lorenzo Pieralisi, Bjorn Helgaas,
linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
linux-kernel@vger.kernel.org
Hello,
> From: Krzysztof Wilczyński, Sent: Thursday, December 14, 2023 10:33 AM
>
> Hello,
>
> > 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/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
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
It's up to you whether my tag is added to the commit or not :)
Best regards,
Yoshihiro Shimoda
> Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] pci: rcar-gen4: Replace of_device.h with explicit of.h include
2023-12-14 2:28 ` Yoshihiro Shimoda
@ 2023-12-14 19:22 ` Krzysztof Wilczyński
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Wilczyński @ 2023-12-14 19:22 UTC (permalink / raw)
To: Yoshihiro Shimoda
Cc: Rob Herring, Marek Vasut, Lorenzo Pieralisi, Bjorn Helgaas,
linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
linux-kernel@vger.kernel.org
Hello,
> > > 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/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
>
> Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-12-14 19:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07 16:52 [PATCH] pci: rcar-gen4: Replace of_device.h with explicit of.h include Rob Herring
2023-12-14 1:33 ` Krzysztof Wilczyński
2023-12-14 2:28 ` Yoshihiro Shimoda
2023-12-14 19:22 ` Krzysztof Wilczyński
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).