[U-Boot] [PATCH 1/1] net.h: don't use the reserved name __unused

Jeroen Hofstee jeroen at myspectrum.nl
Sat Aug 10 16:52:47 CEST 2013


The __* keywords are reserved. On FreeBSD __unused evaluates
to the attribute unused, causing a compilation failure.
Just use unused instead.

Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>
cc: joe.hershberger at gmail.com
---
 include/net.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net.h b/include/net.h
index 7673470..5aedc17 100644
--- a/include/net.h
+++ b/include/net.h
@@ -357,7 +357,7 @@ struct icmp_hdr {
 		} echo;
 		ulong	gateway;
 		struct {
-			ushort	__unused;
+			ushort	unused;
 			ushort	mtu;
 		} frag;
 		uchar data[0];
-- 
1.8.1.2



More information about the U-Boot mailing list