netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gtp: #define #define _GTP_H_ and not #define _GTP_H
@ 2016-07-24 18:24 Colin King
  2016-07-26  0:55 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2016-07-24 18:24 UTC (permalink / raw)
  To: David S . Miller, netdev; +Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

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 <colin.king@canonical.com>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gtp: #define #define _GTP_H_ and not #define _GTP_H
  2016-07-24 18:24 [PATCH] gtp: #define #define _GTP_H_ and not #define _GTP_H Colin King
@ 2016-07-26  0:55 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-07-26  0:55 UTC (permalink / raw)
  To: colin.king; +Cc: netdev, linux-kernel

From: Colin King <colin.king@canonical.com>
Date: Sun, 24 Jul 2016 19:24:09 +0100

> From: Colin Ian King <colin.king@canonical.com>
> 
> 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 <colin.king@canonical.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-26  0:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-24 18:24 [PATCH] gtp: #define #define _GTP_H_ and not #define _GTP_H Colin King
2016-07-26  0:55 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).