]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix sparse warning in sk_dst_set()
authorEric Dumazet <edumazet@google.com>
Wed, 2 Jul 2014 09:39:38 +0000 (02:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jul 2014 00:03:06 +0000 (17:03 -0700)
commitd4a55dce603296bc9150c64b37d6954014e60ad4
treec77da862b0c0a8c2b4a2a6beb75f318cd6b5e606
parent8ab1fc7e0866f181e782be0c2d693c817c5c7fb8
net: fix sparse warning in sk_dst_set()

sk_dst_cache has __rcu annotation, so we need a cast to avoid
following sparse error :

include/net/sock.h:1774:19: warning: incorrect type in initializer (different address spaces)
include/net/sock.h:1774:19:    expected struct dst_entry [noderef] <asn:4>*__ret
include/net/sock.h:1774:19:    got struct dst_entry *dst

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: f23182e7547f ("ipv4: irq safe sk_dst_[re]set() and ipv4_sk_update_pmtu() fix")
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h