sched/core: Annotate curr pointer in rq with __rcu
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Sat, 1 Feb 2020 12:58:03 +0000 (18:28 +0530)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Feb 2020 12:00:37 +0000 (13:00 +0100)
commit4104a562e0ca62e971089db9d3c47794a0d7d4eb
tree3a1f81f3fe6ada20c35d6181cce16acb44215513
parent6fcca0fa48118e6d63733eb4644c6cd880c15b8f
sched/core: Annotate curr pointer in rq with __rcu

This patch fixes the following sparse warnings in sched/core.c
and sched/membarrier.c:

  kernel/sched/core.c:2372:27: error: incompatible types in comparison expression
  kernel/sched/core.c:4061:17: error: incompatible types in comparison expression
  kernel/sched/core.c:6067:9: error: incompatible types in comparison expression
  kernel/sched/membarrier.c:108:21: error: incompatible types in comparison expression
  kernel/sched/membarrier.c:177:21: error: incompatible types in comparison expression
  kernel/sched/membarrier.c:243:21: error: incompatible types in comparison expression

Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20200201125803.20245-1-madhuparnabhowmik10@gmail.com
kernel/sched/sched.h