From: Eric Dumazet Date: Wed, 2 Jul 2014 09:39:38 +0000 (-0700) Subject: net: fix sparse warning in sk_dst_set() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~289^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5925a0555bdaf0b396a84318cbc21ba085f6c0d3;p=pandora-kernel.git 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] *__ret include/net/sock.h:1774:19: got struct dst_entry *dst Signed-off-by: Eric Dumazet Reported-by: kbuild test robot Fixes: 7f502361531e ("ipv4: irq safe sk_dst_[re]set() and ipv4_sk_update_pmtu() fix") Signed-off-by: David S. Miller --- Reading git-diff-tree failed