diff options
author | Jiri Benc <jbenc@redhat.com> | 2015-08-20 13:56:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-20 15:42:36 -0700 |
commit | 376534a3d17002d608985bd67c3b0880eacadd14 (patch) | |
tree | 7e0466d4b829c9a800f4eb65384a363c2473fc53 /include/net/ip_tunnels.h | |
parent | 6b8847c5a2bafbbf92f4b779f87165093457ea68 (diff) | |
download | linux-376534a3d17002d608985bd67c3b0880eacadd14.tar.gz linux-376534a3d17002d608985bd67c3b0880eacadd14.tar.bz2 linux-376534a3d17002d608985bd67c3b0880eacadd14.zip |
ip_tunnels: use offsetofend
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip_tunnels.h')
-rw-r--r-- | include/net/ip_tunnels.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h index ca173f22f07f..cc3b39e9010b 100644 --- a/include/net/ip_tunnels.h +++ b/include/net/ip_tunnels.h @@ -23,9 +23,7 @@ #define IPTUNNEL_ERR_TIMEO (30*HZ) /* Used to memset ip_tunnel padding. */ -#define IP_TUNNEL_KEY_SIZE \ - (offsetof(struct ip_tunnel_key, tp_dst) + \ - FIELD_SIZEOF(struct ip_tunnel_key, tp_dst)) +#define IP_TUNNEL_KEY_SIZE offsetofend(struct ip_tunnel_key, tp_dst) struct ip_tunnel_key { __be64 tun_id; |