Skip to contentSkip to conversation

percpu-remove-redundant-assignments-to-bits.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 redundant assignments to bits
has been removed from the -mm tree. Its filename was
percpu-remove-redundant-assignments-to-bits.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 redundant assignments to bits
Date: Wed, 2 Sep 2026 01:53:01 +0900

Patch series "percpu: remove code with no effect".

While reading the percpu initialization path, I found some minor cleanups for unnecessary initializations and an obsolete return statement.

No functional change.

This patch (of 4):

pcpu_chunk_refresh_hint() and pcpu_find_block_fit() set bits to 0 and later call pcpu_next_md_free_region() or pcpu_next_fit_region(), which unconditionally set *bits to 0. Nothing uses it in between, so the assignments have no effect.

Remove redundant assignments.

No functional change.

---

 mm/percpu.c |    2 --
 1 file changed, 2 deletions(-)
mm/percpu.c renamed from mm/percpu.c~percpu-remove-redundant-assignments-to-bits +0 -2
@@ -758,7 +758,6 @@ static void pcpu_chunk_refresh_hint(stru
 		chunk_md->contig_hint = 0;
 	}
 
-	bits = 0;
 	pcpu_for_each_md_free_region(chunk, bit_off, bits)
 		pcpu_block_update(chunk_md, bit_off, bit_off + bits);
 }
@@ -1122,7 +1121,6 @@ static int pcpu_find_block_fit(struct pc
 		return -1;
 
 	bit_off = pcpu_next_hint(chunk_md, alloc_bits);
-	bits = 0;
 	pcpu_for_each_fit_region(chunk, alloc_bits, align, bit_off, bits) {
 		if (!pop_only || pcpu_is_populated(chunk, bit_off, bits,
 						   &next_off))

_

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