rcuwait: Annotate task_struct with __rcu
This suppresses sparse error generated due to the recently added rcu_assign_pointer sparse check. percpu-rwsem.c:162:9: sparse: error: incompatible types in comparison expression exit.c:316:16: sparse: error: incompatible types in comparison expression Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> [ From an RCU perspective. ] Reviewed-by: Paul E. McKenney <paulmck@linux.ibm.com> Cc: Josh Triplett <josh@joshtriplett.org> Cc: Lai Jiangshan <jiangshanlai@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Morten Rasmussen <morten.rasmussen@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: keescook@chromium.org Cc: kernel-hardening@lists.openwall.com Cc: kernel-team@android.com Link: https://lkml.kernel.org/r/20190321003426.160260-4-joel@joelfernandes.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
994aeb7a93
commit
03f4b48eda
|
@ -18,7 +18,7 @@
|
||||||
* awoken.
|
* awoken.
|
||||||
*/
|
*/
|
||||||
struct rcuwait {
|
struct rcuwait {
|
||||||
struct task_struct *task;
|
struct task_struct __rcu *task;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define __RCUWAIT_INITIALIZER(name) \
|
#define __RCUWAIT_INITIALIZER(name) \
|
||||||
|
|
Loading…
Reference in New Issue