net: use new in_dev_ifa iterators
Use in_dev_for_each_ifa_rcu/rtnl instead. This prevents sparse warnings once proper __rcu annotations are added. Signed-off-by: Florian Westphal <fw@strlen.de> t di# Last commands done (6 commands done): Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b8d1957236
commit
cd5a411dba
@@ -3127,11 +3127,9 @@ static void sit_add_v4_addrs(struct inet6_dev *idev)
|
||||
struct in_device *in_dev = __in_dev_get_rtnl(dev);
|
||||
if (in_dev && (dev->flags & IFF_UP)) {
|
||||
struct in_ifaddr *ifa;
|
||||
|
||||
int flag = scope;
|
||||
|
||||
for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) {
|
||||
|
||||
in_dev_for_each_ifa_rtnl(ifa, in_dev) {
|
||||
addr.s6_addr32[3] = ifa->ifa_local;
|
||||
|
||||
if (ifa->ifa_scope == RT_SCOPE_LINK)
|
||||
|
Reference in New Issue
Block a user