summaryrefslogtreecommitdiffstatshomepage
path: root/src/compat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-03 06:30:17 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-03 06:41:39 +0200
commitf45345b7723f09c94a829d90689d052c864f5b86 (patch)
treea697ef14c4903691878a7abb401def97bf505cba /src/compat
parentglobal: satisfy bitshift pedantry (diff)
downloadwireguard-monolithic-historical-f45345b7723f09c94a829d90689d052c864f5b86.tar.xz
wireguard-monolithic-historical-f45345b7723f09c94a829d90689d052c864f5b86.zip
global: use _WG prefix for include guards
Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/compat.h6
-rw-r--r--src/compat/dst_cache/include/net/dst_cache.h6
-rw-r--r--src/compat/siphash/include/linux/siphash.h6
-rw-r--r--src/compat/udp_tunnel/include/net/udp_tunnel.h6
4 files changed, 12 insertions, 12 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index dcbb080..d37533b 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -1,7 +1,7 @@
/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */
-#ifndef COMPAT_H
-#define COMPAT_H
+#ifndef _WG_COMPAT_H
+#define _WG_COMPAT_H
#include <linux/kconfig.h>
#include <linux/version.h>
@@ -477,4 +477,4 @@ static inline void new_icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32
#define __read_mostly
#endif
-#endif
+#endif /* _WG_COMPAT_H */
diff --git a/src/compat/dst_cache/include/net/dst_cache.h b/src/compat/dst_cache/include/net/dst_cache.h
index 151acca..5a083c7 100644
--- a/src/compat/dst_cache/include/net/dst_cache.h
+++ b/src/compat/dst_cache/include/net/dst_cache.h
@@ -1,5 +1,5 @@
-#ifndef _NET_DST_CACHE_H
-#define _NET_DST_CACHE_H
+#ifndef _WG_NET_DST_CACHE_H
+#define _WG_NET_DST_CACHE_H
#include <linux/jiffies.h>
#include <net/dst.h>
@@ -94,4 +94,4 @@ int dst_cache_init(struct dst_cache *dst_cache, gfp_t gfp);
*/
void dst_cache_destroy(struct dst_cache *dst_cache);
-#endif
+#endif /* _WG_NET_DST_CACHE_H */
diff --git a/src/compat/siphash/include/linux/siphash.h b/src/compat/siphash/include/linux/siphash.h
index fa7a6b9..43aeaa0 100644
--- a/src/compat/siphash/include/linux/siphash.h
+++ b/src/compat/siphash/include/linux/siphash.h
@@ -10,8 +10,8 @@
* hashtables.
*/
-#ifndef _LINUX_SIPHASH_H
-#define _LINUX_SIPHASH_H
+#ifndef _WG_LINUX_SIPHASH_H
+#define _WG_LINUX_SIPHASH_H
#include <linux/types.h>
#include <linux/kernel.h>
@@ -137,4 +137,4 @@ static inline u32 hsiphash(const void *data, size_t len,
return ___hsiphash_aligned(data, len, key);
}
-#endif /* _LINUX_SIPHASH_H */
+#endif /* _WG_LINUX_SIPHASH_H */
diff --git a/src/compat/udp_tunnel/include/net/udp_tunnel.h b/src/compat/udp_tunnel/include/net/udp_tunnel.h
index b80f1f5..8999527 100644
--- a/src/compat/udp_tunnel/include/net/udp_tunnel.h
+++ b/src/compat/udp_tunnel/include/net/udp_tunnel.h
@@ -1,5 +1,5 @@
-#ifndef __NET_UDP_TUNNEL_H
-#define __NET_UDP_TUNNEL_H
+#ifndef _WG_NET_UDP_TUNNEL_H
+#define _WG_NET_UDP_TUNNEL_H
#include <net/ip_tunnels.h>
#include <net/udp.h>
@@ -91,4 +91,4 @@ int udp_tunnel6_xmit_skb(struct dst_entry *dst, struct sock *sk,
void udp_tunnel_sock_release(struct socket *sock);
-#endif
+#endif /* _WG_NET_UDP_TUNNEL_H */