[U-Boot] [PATCH v2 2/7] bootcount: Add include guards into bootcount.h file
Lukasz Majewski
lukma at denx.de
Wed Mar 14 17:24:44 UTC 2018
Signed-off-by: Lukasz Majewski <lukma at denx.de>
---
Changes in v2:
- New patch
include/bootcount.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/bootcount.h b/include/bootcount.h
index 06fb4d3578..e3b3f7028e 100644
--- a/include/bootcount.h
+++ b/include/bootcount.h
@@ -4,6 +4,8 @@
*
* SPDX-License-Identifier: GPL-2.0+
*/
+#ifndef _BOOTCOUNT_H__
+#define _BOOTCOUNT_H__
#include <common.h>
#include <asm/io.h>
@@ -38,3 +40,4 @@ static inline u32 raw_bootcount_load(volatile u32 *addr)
return in_be32(addr);
}
#endif
+#endif /* _BOOTCOUNT_H__ */
--
2.11.0
More information about the U-Boot
mailing list