[PATCH 2/2] sched/fair: replace bare 'unsigned' with 'unsigned int'

From: Zhan Xusheng

Date: Fri Dec 19 2025 - 03:50:19 EST


Replace 'unsigned' casts with explicit 'unsigned int'
casts to comply with kernel coding style.

No functional change intended.

Signed-off-by: Zhan Xusheng <zhanxusheng@xxxxxxxxxx>
---
kernel/sched/fair.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 56dd655d9bc2..4e6a57708229 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -7861,7 +7861,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
*/
if (sd) {
i = select_idle_capacity(p, sd, target);
- return ((unsigned)i < nr_cpumask_bits) ? i : target;
+ return ((unsigned int)i < nr_cpumask_bits) ? i : target;
}
}

@@ -7880,7 +7880,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
}

i = select_idle_cpu(p, sd, has_idle_core, target);
- if ((unsigned)i < nr_cpumask_bits)
+ if ((unsigned int)i < nr_cpumask_bits)
return i;

/*
--
2.43.0