Re: [PATCH RFC] rcu: add sparse check to rcu_assign_pointer

2018-12-12 Thread Paul E. McKenney
On Wed, Dec 12, 2018 at 02:37:10PM -0800, Joel Fernandes (Google) wrote: > rcu_assign_pointer currently doesn't do any sparse checking on a pointer > assigned. So its possible that a pointer that is not __rcu annotated is > assigned with rcu_assign_pointer without sparse complainting. >

[PATCH RFC] rcu: add sparse check to rcu_assign_pointer

2018-12-12 Thread Joel Fernandes (Google)
rcu_assign_pointer currently doesn't do any sparse checking on a pointer assigned. So its possible that a pointer that is not __rcu annotated is assigned with rcu_assign_pointer without sparse complainting. rcu_dereference already does such checking so lets also make rcu_assign_pointer to do the