diff mbox series

[U-Boot,v2,2/7] bootcount: Add include guards into bootcount.h file

Message ID 20180314172450.8385-3-lukma@denx.de
State Changes Requested
Delegated to: Stefan Roese
Headers show
Series Provide SPL support for bootcount (in the case of using falcon boot mode) | expand

Commit Message

Lukasz Majewski March 14, 2018, 5:24 p.m. UTC
Signed-off-by: Lukasz Majewski <lukma@denx.de>

---

Changes in v2:
- New patch

 include/bootcount.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Stefan Roese March 21, 2018, 10:01 a.m. UTC | #1
On 14.03.2018 18:24, Lukasz Majewski wrote:
> Signed-off-by: Lukasz Majewski <lukma@denx.de>

It is usually a requirement, to add a comment to the commit test. Even
with such simple changes. So please add at least one line here.

Other thank this:

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan
diff mbox series

Patch

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__ */