mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel/sched: removed unused *cpumask ptr in kernel/sched/sched.h
@ 2025-10-20 22:06 Aditya Gollamudi
  2025-10-20 22:17 ` [PATCH v2] " Aditya Gollamudi
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Gollamudi @ 2025-10-20 22:06 UTC (permalink / raw)
  To: mingo
  Cc: adigollamudi, peterz, juri.lelli, vincent.guittot,
	dietmar.eggemann, rostedt, bsegall, mgorman, vschneid,
	linux-kernel

From: Adi Gollamudi <adigollamudi@gmail.com>

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@gmail.com>
---
 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] kernel/sched: removed unused *cpumask ptr in kernel/sched/sched.h
  2025-10-20 22:06 [PATCH] kernel/sched: removed unused *cpumask ptr in kernel/sched/sched.h Aditya Gollamudi
@ 2025-10-20 22:17 ` Aditya Gollamudi
  2025-10-21  7:58   ` Valentin Schneider
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Gollamudi @ 2025-10-20 22:17 UTC (permalink / raw)
  To: mingo
  Cc: adigollamudi, peterz, juri.lelli, vincent.guittot,
	dietmar.eggemann, rostedt, bsegall, mgorman, vschneid,
	linux-kernel

From: Adi Gollamudi <adigollamudi@gmail.com>

v2: fix formatting and style errors found by checkpatch.pl. no actual functional changes

v1: 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@gmail.com>
---
 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] kernel/sched: removed unused *cpumask ptr in kernel/sched/sched.h
  2025-10-20 22:17 ` [PATCH v2] " Aditya Gollamudi
@ 2025-10-21  7:58   ` Valentin Schneider
  2025-10-21 11:11     ` Peter Zijlstra
  0 siblings, 1 reply; 4+ messages in thread
From: Valentin Schneider @ 2025-10-21  7:58 UTC (permalink / raw)
  To: Aditya Gollamudi, mingo
  Cc: adigollamudi, peterz, juri.lelli, vincent.guittot,
	dietmar.eggemann, rostedt, bsegall, mgorman, linux-kernel

On 20/10/25 15:17, Aditya Gollamudi wrote:
> From: Adi Gollamudi <adigollamudi@gmail.com>
>
> v2: fix formatting and style errors found by checkpatch.pl. no actual functional changes
>
> v1: 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.
>

Please see Documentation/process/submitting-patches; the version changelogs
don't belong in the patch body but should rather be put after the '---'
marker line.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] kernel/sched: removed unused *cpumask ptr in kernel/sched/sched.h
  2025-10-21  7:58   ` Valentin Schneider
@ 2025-10-21 11:11     ` Peter Zijlstra
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Zijlstra @ 2025-10-21 11:11 UTC (permalink / raw)
  To: Valentin Schneider
  Cc: Aditya Gollamudi, mingo, juri.lelli, vincent.guittot,
	dietmar.eggemann, rostedt, bsegall, mgorman, linux-kernel

On Tue, Oct 21, 2025 at 09:58:29AM +0200, Valentin Schneider wrote:
> On 20/10/25 15:17, Aditya Gollamudi wrote:
> > From: Adi Gollamudi <adigollamudi@gmail.com>
> >
> > v2: fix formatting and style errors found by checkpatch.pl. no actual functional changes
> >
> > v1: 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.
> >
> 
> Please see Documentation/process/submitting-patches; the version changelogs
> don't belong in the patch body but should rather be put after the '---'
> marker line.
> 

Also, please search the archives before sending patches like this.
You'll find I have at least 5 versions of this patch already, and I'm
still not convinced its worth applying.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-10-21 17:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-20 22:06 [PATCH] kernel/sched: removed unused *cpumask ptr in kernel/sched/sched.h Aditya Gollamudi
2025-10-20 22:17 ` [PATCH v2] " Aditya Gollamudi
2025-10-21  7:58   ` Valentin Schneider
2025-10-21 11:11     ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®