[PATCH] gtp: #define #define _GTP_H_ and not #define _GTP_H

Subsystems: networking [general], the rest

STALE3672d

2 messages, 2 authors, 2016-07-26 · open the first message on its own page

[PATCH] gtp: #define #define _GTP_H_ and not #define _GTP_H

From: Colin King <hidden>
Date: 2016-07-24 18:25:06

From: Colin Ian King <redacted>

Fix clang build warning:

./include/net/gtp.h:1:9: warning: '_GTP_H_' is used as a header
guard here, followed by #define of a different macro [-Wheader-guard]

fix by defining _GTP_H_ and not _GTP_H

Signed-off-by: Colin Ian King <redacted>
---
 include/net/gtp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/gtp.h b/include/net/gtp.h
index 894a37b..6398891 100644
--- a/include/net/gtp.h
+++ b/include/net/gtp.h
@@ -1,5 +1,5 @@
 #ifndef _GTP_H_
-#define _GTP_H
+#define _GTP_H_
 
 /* General GTP protocol related definitions. */
 
-- 
2.8.1

Re: [PATCH] gtp: #define #define _GTP_H_ and not #define _GTP_H

From: David Miller <davem@davemloft.net>
Date: 2016-07-26 00:56:01

From: Colin King <redacted>
Date: Sun, 24 Jul 2016 19:24:09 +0100
From: Colin Ian King <redacted>

Fix clang build warning:

./include/net/gtp.h:1:9: warning: '_GTP_H_' is used as a header
guard here, followed by #define of a different macro [-Wheader-guard]

fix by defining _GTP_H_ and not _GTP_H

Signed-off-by: Colin Ian King <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help