[PATCH 3/4] percpu: remove unnecessary cpumask_clear() in pcpu_build_alloc_info()

From: Sang-Heon Jeon

Date: Tue Sep 01 2026 - 12:58:26 EST


pcpu_build_alloc_info() clears mask and unconditionally sets it to
cpu_possible_mask. Nothing uses it in between, so cpumask_clear() has
no effect.

Remove unnecessary cpumask_clear().

No functional change.

Signed-off-by: Sang-Heon Jeon <ekffu200098@xxxxxxxxx>
---
mm/percpu.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/mm/percpu.c b/mm/percpu.c
index f222b43cc90a..45f3e3fda2f9 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -2828,7 +2828,6 @@ static struct pcpu_alloc_info * __init __flatten pcpu_build_alloc_info(
/* this function may be called multiple times */
memset(group_map, 0, sizeof(group_map));
memset(group_cnt, 0, sizeof(group_cnt));
- cpumask_clear(&mask);

/* calculate size_sum and ensure dyn_size is enough for early alloc */
size_sum = PFN_ALIGN(static_size + reserved_size +
--
2.43.0