public inbox for linux-edac@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] EDAC: armada_xp: Explicitly include correct DT includes
@ 2023-10-13 19:03 Rob Herring
  2023-11-23 12:01 ` Jan Lübbe
  2023-11-27 17:36 ` Borislav Petkov
  0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring @ 2023-10-13 19:03 UTC (permalink / raw)
  To: Jan Luebbe, Borislav Petkov, Tony Luck, James Morse,
	Mauro Carvalho Chehab, Robert Richter
  Cc: linux-edac, 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/edac/armada_xp_edac.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/edac/armada_xp_edac.c b/drivers/edac/armada_xp_edac.c
index c4bd2fb9c46b..f18db536d58e 100644
--- a/drivers/edac/armada_xp_edac.c
+++ b/drivers/edac/armada_xp_edac.c
@@ -5,7 +5,9 @@
 
 #include <linux/kernel.h>
 #include <linux/edac.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
+#include <linux/platform_device.h>
 
 #include <asm/hardware/cache-l2x0.h>
 #include <asm/hardware/cache-aurora-l2.h>
-- 
2.42.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] EDAC: armada_xp: Explicitly include correct DT includes
  2023-10-13 19:03 [PATCH] EDAC: armada_xp: Explicitly include correct DT includes Rob Herring
@ 2023-11-23 12:01 ` Jan Lübbe
  2023-11-27 17:36 ` Borislav Petkov
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Lübbe @ 2023-11-23 12:01 UTC (permalink / raw)
  To: Rob Herring, Borislav Petkov
  Cc: linux-edac, linux-kernel, Tony Luck, Mauro Carvalho Chehab,
	James Morse, Robert Richter, kernel

On Fri, 2023-10-13 at 14:03 -0500, Rob Herring wrote:
> 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>

Reviewed-by: Jan Luebbe <jlu@pengutronix.de>

Sorry for the delay,
Jan

> ---
>  drivers/edac/armada_xp_edac.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/edac/armada_xp_edac.c b/drivers/edac/armada_xp_edac.c
> index c4bd2fb9c46b..f18db536d58e 100644
> --- a/drivers/edac/armada_xp_edac.c
> +++ b/drivers/edac/armada_xp_edac.c
> @@ -5,7 +5,9 @@
>  
>  #include <linux/kernel.h>
>  #include <linux/edac.h>
> -#include <linux/of_platform.h>
> +#include <linux/of.h>
> +#include <linux/of_device.h>
> +#include <linux/platform_device.h>
>  
>  #include <asm/hardware/cache-l2x0.h>
>  #include <asm/hardware/cache-aurora-l2.h>

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] EDAC: armada_xp: Explicitly include correct DT includes
  2023-10-13 19:03 [PATCH] EDAC: armada_xp: Explicitly include correct DT includes Rob Herring
  2023-11-23 12:01 ` Jan Lübbe
@ 2023-11-27 17:36 ` Borislav Petkov
  1 sibling, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2023-11-27 17:36 UTC (permalink / raw)
  To: Rob Herring
  Cc: Jan Luebbe, Tony Luck, James Morse, Mauro Carvalho Chehab,
	Robert Richter, linux-edac, linux-kernel

On Fri, Oct 13, 2023 at 02:03:42PM -0500, Rob Herring wrote:
> 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/edac/armada_xp_edac.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-27 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-13 19:03 [PATCH] EDAC: armada_xp: Explicitly include correct DT includes Rob Herring
2023-11-23 12:01 ` Jan Lübbe
2023-11-27 17:36 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox