[U-Boot] [PATCH] arm: ti: Add missing guards to headers
Sam Protsenko
semen.protsenko at linaro.org
Tue Jun 13 15:15:58 UTC 2017
To prevent possible double inclusions in future.
Signed-off-by: Sam Protsenko <semen.protsenko at linaro.org>
---
include/environment/ti/dfu.h | 5 +++++
include/environment/ti/mmc.h | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/include/environment/ti/dfu.h b/include/environment/ti/dfu.h
index c9f61a577e..c89005ff4c 100644
--- a/include/environment/ti/dfu.h
+++ b/include/environment/ti/dfu.h
@@ -6,6 +6,9 @@
* SPDX-License-Identifier: GPL-2.0+
*/
+#ifndef __TI_DFU_H
+#define __TI_DFU_H
+
#define DFU_ALT_INFO_MMC \
"dfu_alt_info_mmc=" \
"boot part 0 1;" \
@@ -75,3 +78,5 @@
"u-boot-env raw 0x1C0000 0x010000;" \
"u-boot-env.backup raw 0x1D0000 0x010000;" \
"kernel raw 0x1E0000 0x800000\0"
+
+#endif /* __TI_DFU_H */
diff --git a/include/environment/ti/mmc.h b/include/environment/ti/mmc.h
index b987f71516..4305ebdaaf 100644
--- a/include/environment/ti/mmc.h
+++ b/include/environment/ti/mmc.h
@@ -6,6 +6,9 @@
* SPDX-License-Identifier: GPL-2.0+
*/
+#ifndef __TI_MMC_H
+#define __TI_MMC_H
+
#define DEFAULT_MMC_TI_ARGS \
"mmcdev=0\0" \
"mmcrootfstype=ext4 rootwait\0" \
@@ -66,3 +69,5 @@
"fi;" \
"fi;" \
"fi;\0"
+
+#endif /* __TI_MMC_H */
--
2.11.0
More information about the U-Boot
mailing list