Skip to contentSkip to conversation

percpu-remove-unnecessary-initialization-in-pcpu_build_alloc_info.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Oct 7

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

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 <[email protected]>
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.

---

 mm/percpu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/percpu.c renamed from mm/percpu.c~percpu-remove-unnecessary-initialization-in-pcpu_build_alloc_info +1 -1
@@ -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 [email protected] 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