Skip to contentSkip to conversation

sysinfo.h: Add re-inclusion guard

PATCH New Tom Rini 1 participant 2 messages Apr 19, 2021 – Apr 20, 2021

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 sysinfo.h: Add re-inclusion guard

Add #ifndef __SYSINFO_H__ ... #endif to prevent re-inclusion of this file.

---
 include/sysinfo.h | 4 ++++
 1 file changed, 4 insertions(+)
include/sysinfo.h +4 -0
index 7b2114088003..b140d742e93d 100644
@@ -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
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 1/1 sysinfo.h: Add re-inclusion guard

Quoted 4 lines · Tom Rini

Add #ifndef __SYSINFO_H__ ... #endif to prevent re-inclusion of this file.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210420/bf588748/attachment.sig>