[PATCH] kernel/sched: removed unused *cpumask ptr in kernel/sched/sched.h
From: Aditya Gollamudi
Date: Mon Oct 20 2025 - 18:06:24 EST
From: Adi Gollamudi <adigollamudi@xxxxxxxxx>
remove use of cpumask ptr initialized at the top of the mm_cid_get() function to nothing.
remove initialization of cpumask ptr in the same function, "cpumask = mm_cidmask(mm);" because
it is not used later.
Signed-off-by: Adi Gollamudi <adigollamudi@xxxxxxxxx>
---
kernel/sched/sched.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index be9745d104f7..d5d943681bf8 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -3710,11 +3710,9 @@ static inline int mm_cid_get(struct rq *rq, struct task_struct *t,
struct mm_struct *mm)
{
struct mm_cid __percpu *pcpu_cid = mm->pcpu_cid;
- struct cpumask *cpumask;
int cid;
lockdep_assert_rq_held(rq);
- cpumask = mm_cidmask(mm);
cid = __this_cpu_read(pcpu_cid->cid);
if (mm_cid_is_valid(cid)) {
mm_cid_snapshot_time(rq, mm);
--
2.34.1