Skip to contentSkip to conversation

ARM: l2x0: Add explicit includes for init and types

PATCH Superseded Rob Herring 1 participant 2 messages Jul 18, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: l2x0: Add explicit includes for init and types

The cache-l2x0.h header uses u32 type and the __init and __iomem attributes, so it should have explicit includes for those.

---
 arch/arm/include/asm/hardware/cache-l2x0.h | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/include/asm/hardware/cache-l2x0.h +2 -0
index a6d4ee86ba54..5a7ee70f561c 100644
@@ -9,6 +9,8 @@
 #define __ASM_ARM_HARDWARE_L2X0_H
 
 #include <linux/errno.h>
+#include <linux/init.h>
+#include <linux/types.h>
 
 #define L2X0_CACHE_ID			0x000
 #define L2X0_CACHE_TYPE			0x004
Signature · 1 line
2.40.1
#1 lore raw

PATCH 2/2 ARM: sti: Drop unused includes

Several includes are not needed, so drop them.

---
This depends on patch 1.

 arch/arm/mach-sti/board-dt.c | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-sti/board-dt.c +0 -2
index ffecbf29646f..488084b61b4a 100644
@@ -4,8 +4,6 @@
  * Author(s): Srinivas Kandagatla <[email protected]>
  */
 
-#include <linux/irq.h>
-#include <linux/of_platform.h>
 #include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/arch.h>
 
Signature · 1 line
2.40.1