[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170828.153543.1829810467947750597.davem@davemloft.net>
Date: Mon, 28 Aug 2017 15:35:43 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: weiwan@...gle.com
Cc: netdev@...r.kernel.org, edumazet@...gle.com, kafai@...com
Subject: Re: [PATCH net] ipv6: fix sparse warning on rt6i_node
From: Wei Wang <weiwan@...gle.com>
Date: Fri, 25 Aug 2017 15:03:10 -0700
> From: Wei Wang <weiwan@...gle.com>
>
> Commit c5cff8561d2d adds rcu grace period before freeing fib6_node. This
> generates a new sparse warning on rt->rt6i_node related code:
> net/ipv6/route.c:1394:30: error: incompatible types in comparison
> expression (different address spaces)
> ./include/net/ip6_fib.h:187:14: error: incompatible types in comparison
> expression (different address spaces)
>
> This commit adds "__rcu" tag for rt6i_node and makes sure corresponding
> rcu API is used for it.
> After this fix, sparse no longer generates the above warning.
>
> Fixes: c5cff8561d2d ("ipv6: add rcu grace period before freeing fib6_node")
> Signed-off-by: Wei Wang <weiwan@...gle.com>
> Acked-by: Eric Dumazet <edumazet@...gle.com>
Applied.
Powered by blists - more mailing lists