* [PATCH] sysinfo.h: Add re-inclusion guard
@ 2021-04-19 20:19 Tom Rini
2021-04-20 14:22 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Tom Rini @ 2021-04-19 20:19 UTC (permalink / raw)
To: u-boot
Add #ifndef __SYSINFO_H__ ... #endif to prevent re-inclusion of this
file.
Signed-off-by: Tom Rini <trini@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] sysinfo.h: Add re-inclusion guard
2021-04-19 20:19 [PATCH] sysinfo.h: Add re-inclusion guard Tom Rini
@ 2021-04-20 14:22 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2021-04-20 14:22 UTC (permalink / raw)
To: u-boot
On Mon, Apr 19, 2021 at 04:19:40PM -0400, Tom Rini wrote:
> Add #ifndef __SYSINFO_H__ ... #endif to prevent re-inclusion of this
> file.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
Applied to u-boot/master, thanks!
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-20 14:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-19 20:19 [PATCH] sysinfo.h: Add re-inclusion guard Tom Rini
2021-04-20 14:22 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox