* [merged mm-stable] percpu-remove-unnecessary-initialization-in-pcpu_build_alloc_info.patch removed from -mm tree
@ 2026-10-07 0:52 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-10-07 0:52 UTC (permalink / raw)
To: mm-commits, tj, dennis, cl, ekffu200098, akpm
The quilt patch titled
Subject: percpu: remove unnecessary initialization in pcpu_build_alloc_info()
has been removed from the -mm tree. Its filename was
percpu-remove-unnecessary-initialization-in-pcpu_build_alloc_info.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Sang-Heon Jeon <ekffu200098@gmail.com>
Subject: percpu: remove unnecessary initialization in pcpu_build_alloc_info()
Date: Wed, 2 Sep 2026 01:53:02 +0900
pcpu_build_alloc_info() initializes nr_groups to 1 and unconditionally
sets it to the number of groups. Nothing uses it in between, so the
initialization has no effect.
Remove unnecessary initialization.
No functional change.
Link: https://lore.kernel.org/20260901165307.1026248-3-ekffu200098@gmail.com
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
---
mm/percpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/percpu.c~percpu-remove-unnecessary-initialization-in-pcpu_build_alloc_info
+++ a/mm/percpu.c
@@ -2817,7 +2817,7 @@ static struct pcpu_alloc_info * __init _
static int group_cnt[NR_CPUS] __initdata;
static struct cpumask mask __initdata;
const size_t static_size = __per_cpu_end - __per_cpu_start;
- int nr_groups = 1, nr_units = 0;
+ int nr_groups, nr_units = 0;
size_t size_sum, min_unit_size, alloc_size;
int upa, max_upa, best_upa; /* units_per_alloc */
int last_allocs, group, unit;
_
Patches currently in -mm which might be from ekffu200098@gmail.com are
mm-swapops-remove-unused-is_hwpoison_entry.patch
bootconfig-remove-redundant-assignment-in-xbc_parse_array.patch
init-mainc-remove-unreachable-check-in-obsolete_checksetup.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-07 0:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07 0:52 [merged mm-stable] percpu-remove-unnecessary-initialization-in-pcpu_build_alloc_info.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.