diff options
Diffstat (limited to 'src')
-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; \ |