Skip to contentSkip to conversation

imx6: Add include guards for include/asm/arch-mx6/sys_proto.h file

PATCH New Lukasz Majewski 1 participant 3 messages Nov 7, 2017 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 imx6: Add include guards for include/asm/arch-mx6/sys_proto.h file

---

 arch/arm/include/asm/arch-mx6/sys_proto.h | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/include/asm/arch-mx6/sys_proto.h +5 -0
index 72ab7d814f..33458cd000 100644
@@ -5,6 +5,9 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
+#ifndef __SYS_PROTO_IMX6_
+#define __SYS_PROTO_IMX6_
+
 #include <asm/mach-imx/sys_proto.h>
 #include <asm/arch/iomux.h>
 
@@ -27,3 +30,5 @@ static inline void iomuxc_set_rgmii_io_voltage(int io_vol)
 {
 	__raw_writel(io_vol, IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE_RGMII);
 }
+
+#endif /* __SYS_PROTO_IMX6_ */
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/3 imx5: Add include guards for include/asm/arch-mx5/sys_proto.h file

---

 arch/arm/include/asm/arch-mx5/sys_proto.h | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/include/asm/arch-mx5/sys_proto.h +4 -0
index 14f5d948c9..de19c45e09 100644
@@ -4,5 +4,9 @@
  *
  * SPDX-License-Identifier:	GPL-2.0+
  */
+#ifndef __SYS_PROTO_IMX5_
+#define __SYS_PROTO_IMX5_
 
 #include <asm/mach-imx/sys_proto.h>
+
+#endif /* __SYS_PROTO_IMX5_ */
Signature · 1 line
2.11.0
#2 lore raw

PATCH 3/3 imx7: Add include guards for include/asm/arch-mx7/sys_proto.h file

In reply to Lukasz Majewski

---

 arch/arm/include/asm/arch-mx7/sys_proto.h | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/include/asm/arch-mx7/sys_proto.h +4 -0
index fa624248b2..cd83662a78 100644
@@ -3,8 +3,12 @@
  *
  * SPDX-License-Identifier:	GPL-2.0+
  */
+#ifndef __SYS_PROTO_IMX7_
+#define __SYS_PROTO_IMX7_
 
 #include <asm/mach-imx/sys_proto.h>
 
 void set_wdog_reset(struct wdog_regs *wdog);
 enum boot_device get_boot_device(void);
+
+#endif /* __SYS_PROTO_IMX7_ */
Signature · 1 line
2.11.0