Commit-ID: ea3ce866b568e087737df666c2c035496f54fdcb Gitweb: https://git.kernel.org/tip/ea3ce866b568e087737df666c2c035496f54fdcb Author: Joel Fernandes (Google) <j...@joelfernandes.org> AuthorDate: Wed, 20 Mar 2019 20:34:25 -0400 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Wed, 3 Apr 2019 09:51:04 +0200
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) <j...@joelfernandes.org> Signed-off-by: Peter Zijlstra (Intel) <pet...@infradead.org> [ From an RCU perspective. ] Reviewed-by: Paul E. McKenney <paul...@linux.ibm.com> Cc: Josh Triplett <j...@joshtriplett.org> Cc: Lai Jiangshan <jiangshan...@gmail.com> Cc: Linus Torvalds <torva...@linux-foundation.org> Cc: Luc Van Oostenryck <luc.vanoostenr...@gmail.com> Cc: Mathieu Desnoyers <mathieu.desnoy...@efficios.com> Cc: Mike Galbraith <efa...@gmx.de> Cc: Morten Rasmussen <morten.rasmus...@arm.com> Cc: Peter Zijlstra <pet...@infradead.org> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: keesc...@chromium.org Cc: kernel-harden...@lists.openwall.com Cc: kernel-t...@android.com Link: https://lkml.kernel.org/r/20190321003426.160260-4-j...@joelfernandes.org Signed-off-by: Ingo Molnar <mi...@kernel.org> --- include/linux/rcuwait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rcuwait.h b/include/linux/rcuwait.h index 90bfa3279a01..563290fc194f 100644 --- a/include/linux/rcuwait.h +++ b/include/linux/rcuwait.h @@ -18,7 +18,7 @@ * awoken. */ struct rcuwait { - struct task_struct *task; + struct task_struct __rcu *task; }; #define __RCUWAIT_INITIALIZER(name) \