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.
Showing the changes to include (1 of 4 files). Show all
Unified · Split
| @@ -105,7 +105,7 @@ struct rt6_info { · 104 unmodified lines | ||
| 105 | 105 | * the same cache line. |
| 106 | 106 | */ |
| 107 | 107 | struct fib6_table *rt6i_table; |
| 108 | − struct fib6_node *rt6i_node; | |
| 108 | + struct fib6_node __rcu *rt6i_node; | |
| 109 | 109 | |
| 110 | 110 | struct in6_addr rt6i_gateway; |
| 111 | 111 | |