[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200201125803.20245-1-madhuparnabhowmik10@gmail.com>
Date: Sat, 1 Feb 2020 18:28:03 +0530
From: madhuparnabhowmik10@...il.com
To: mingo@...hat.com, peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com
Cc: linux-kernel@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org,
rcu@...r.kernel.org, joel@...lfernandes.org, paulmck@...nel.org,
Madhuparna Bhowmik <madhuparnabhowmik10@...il.com>
Subject: [PATCH] sched.h: Annotate curr pointer in rq with __rcu
From: Madhuparna Bhowmik <madhuparnabhowmik10@...il.com>
This patch fixes the following sparse errors 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@...il.com>
---
kernel/sched/sched.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 280a3c735935..97b1396b6008 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -896,7 +896,7 @@ struct rq {
*/
unsigned long nr_uninterruptible;
- struct task_struct *curr;
+ struct task_struct __rcu *curr;
struct task_struct *idle;
struct task_struct *stop;
unsigned long next_balance;
--
2.17.1
Powered by blists - more mailing lists