diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-14 04:04:56 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-15 02:42:36 +0100 |
commit | e028075e3c15669679726b7b20754d420720f95a (patch) | |
tree | c80085ecf77b77bcf2639e7c1f2b33f59d911dc0 /src/compat.h | |
parent | debug: cleanup skb printing (diff) | |
download | wireguard-monolithic-historical-e028075e3c15669679726b7b20754d420720f95a.tar.xz wireguard-monolithic-historical-e028075e3c15669679726b7b20754d420720f95a.zip |
compat: rearrange
Diffstat (limited to '')
-rw-r--r-- | src/compat.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compat.h b/src/compat.h index 42fa7fe..7577222 100644 --- a/src/compat.h +++ b/src/compat.h @@ -141,13 +141,6 @@ static inline int dst_cache_init(struct dst_cache *dst_cache, gfp_t gfp) { retur static inline void dst_cache_destroy(struct dst_cache *dst_cache) { } #endif -/* PaX compatibility */ -#ifdef CONSTIFY_PLUGIN -#include <linux/cache.h> -#undef __read_mostly -#define __read_mostly -#endif - /* https://lkml.org/lkml/2015/6/12/415 */ #include <linux/netdevice.h> static inline struct net_device *netdev_pub(void *dev) @@ -155,6 +148,13 @@ static inline struct net_device *netdev_pub(void *dev) return (struct net_device *)((char *)dev - ALIGN(sizeof(struct net_device), NETDEV_ALIGN)); } +/* PaX compatibility */ +#ifdef CONSTIFY_PLUGIN +#include <linux/cache.h> +#undef __read_mostly +#define __read_mostly +#endif + #if defined(CONFIG_DYNAMIC_DEBUG) || defined(DEBUG) #define net_dbg_skb_ratelimited(fmt, skb, ...) do { \ struct endpoint __endpoint; \ |