History

ipv6: fix sparse warning on rt6i_node

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.

Wei Wang committed 9 years ago

Commit 4e587ea1 parent 0f308684 files · +11 −7Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/net/ip6_fib.h+1−1
@@ -105,7 +105,7 @@ struct rt6_info { · 104 unmodified lines
105105 * the same cache line.
106106 */
107107 struct fib6_table *rt6i_table;
108− struct fib6_node *rt6i_node;
108+ struct fib6_node __rcu *rt6i_node;
109109
110110 struct in6_addr rt6i_gateway;
111111