Commit e7d4b18c authored by Saurabh's avatar Saurabh Committed by David S. Miller

net/ipv4/ip_vti.c: Fix __rcu warnings detected by sparse.

With CONFIG_SPARSE_RCU_POINTER=y sparse identified references which did not
specificy __rcu in ip_vti.c
Signed-off-by: default avatarSaurabh Mohan <saurabh.mohan@vyatta.com>
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8fe5cb87
...@@ -55,7 +55,7 @@ struct vti_net { ...@@ -55,7 +55,7 @@ struct vti_net {
struct ip_tunnel __rcu *tunnels_r[HASH_SIZE]; struct ip_tunnel __rcu *tunnels_r[HASH_SIZE];
struct ip_tunnel __rcu *tunnels_l[HASH_SIZE]; struct ip_tunnel __rcu *tunnels_l[HASH_SIZE];
struct ip_tunnel __rcu *tunnels_wc[1]; struct ip_tunnel __rcu *tunnels_wc[1];
struct ip_tunnel **tunnels[4]; struct ip_tunnel __rcu **tunnels[4];
struct net_device *fb_tunnel_dev; struct net_device *fb_tunnel_dev;
}; };
...@@ -160,7 +160,7 @@ static struct ip_tunnel *vti_tunnel_lookup(struct net *net, ...@@ -160,7 +160,7 @@ static struct ip_tunnel *vti_tunnel_lookup(struct net *net,
return NULL; return NULL;
} }
static struct ip_tunnel **__vti_bucket(struct vti_net *ipn, static struct ip_tunnel __rcu **__vti_bucket(struct vti_net *ipn,
struct ip_tunnel_parm *parms) struct ip_tunnel_parm *parms)
{ {
__be32 remote = parms->iph.daddr; __be32 remote = parms->iph.daddr;
...@@ -179,7 +179,7 @@ static struct ip_tunnel **__vti_bucket(struct vti_net *ipn, ...@@ -179,7 +179,7 @@ static struct ip_tunnel **__vti_bucket(struct vti_net *ipn,
return &ipn->tunnels[prio][h]; return &ipn->tunnels[prio][h];
} }
static inline struct ip_tunnel **vti_bucket(struct vti_net *ipn, static inline struct ip_tunnel __rcu **vti_bucket(struct vti_net *ipn,
struct ip_tunnel *t) struct ip_tunnel *t)
{ {
return __vti_bucket(ipn, &t->parms); return __vti_bucket(ipn, &t->parms);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment