diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-07-10 14:09:12 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-07-20 03:37:39 +0200 |
commit | 9881a2569f554006d16590e03a31193bfedd23a3 (patch) | |
tree | 73c9f842b6b531c5722931cdd9b28426c575316f /src/compat/compat.h | |
parent | device: support 4.13's extact newlink param (diff) | |
download | wireguard-monolithic-historical-9881a2569f554006d16590e03a31193bfedd23a3.tar.xz wireguard-monolithic-historical-9881a2569f554006d16590e03a31193bfedd23a3.zip |
global: use pointer to net_device
DaveM prefers it to be this way per [1].
[1] http://www.spinics.net/lists/netdev/msg443992.html
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 524fe6f..a1a5061 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -378,13 +378,6 @@ static inline void new_icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 #define icmpv6_send(a,b,c,d) new_icmpv6_send(a,b,c,d) #endif -/* https://lkml.org/lkml/2015/6/12/415 */ -#include <linux/netdevice.h> -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> |