[PATCH] sysinfo.h: Add re-inclusion guard
Tom Rini
trini at konsulko.com
Mon Apr 19 22:19:40 CEST 2021
Add #ifndef __SYSINFO_H__ ... #endif to prevent re-inclusion of this
file.
Signed-off-by: Tom Rini <trini at konsulko.com>
---
include/sysinfo.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/sysinfo.h b/include/sysinfo.h
index 7b2114088003..b140d742e93d 100644
--- a/include/sysinfo.h
+++ b/include/sysinfo.h
@@ -4,6 +4,9 @@
* Mario Six, Guntermann & Drunck GmbH, mario.six at gdsys.cc
*/
+#ifndef __SYSINFO_H__
+#define __SYSINFO_H__
+
struct udevice;
/*
@@ -236,3 +239,4 @@ static inline int sysinfo_get_fit_loadable(struct udevice *dev, int index,
}
#endif
+#endif
--
2.17.1
More information about the U-Boot
mailing list