[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200122181156.27244-1-madhuparnabhowmik10@gmail.com>
Date: Wed, 22 Jan 2020 23:41:56 +0530
From: madhuparnabhowmik10@...il.com
To: mingo@...hat.com, peterz@...radead.org
Cc: linux-kernel@...r.kernel.org, joel@...lfernandes.org,
frextrite@...il.com, rcu@...r.kernel.org, paulmck@...nel.org,
linux-kernel-mentees@...ts.linuxfoundation.org,
Madhuparna Bhowmik <madhuparnabhowmik10@...il.com>
Subject: [PATCH] sched.h: Annotate sighand_struct with __rcu
From: Madhuparna Bhowmik <madhuparnabhowmik10@...il.com>
This patch fixes the following sparse errors:
kernel/fork.c:1511:9: error: incompatible types in comparison expression
kernel/exit.c:100:19: error: incompatible types in comparison expression
kernel/signal.c:1370:27: error: incompatible types in comparison expression
Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@...il.com>
---
include/linux/sched.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/sched.h b/include/linux/sched.h
index b511e178a89f..7a351360ad54 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -918,7 +918,7 @@ struct task_struct {
/* Signal handlers: */
struct signal_struct *signal;
- struct sighand_struct *sighand;
+ struct sighand_struct __rcu *sighand;
sigset_t blocked;
sigset_t real_blocked;
/* Restored if set_restore_sigmask() was used: */
--
2.17.1
Powered by blists - more mailing lists