Skip to contentSkip to conversation

tools-mm-slabinfo-fix-partial-long-option-mapping.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 21

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: tools/mm/slabinfo: fix --partial long option mapping
has been removed from the -mm tree. Its filename was
tools-mm-slabinfo-fix-partial-long-option-mapping.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: Kaushlendra Kumar <[email protected]>
Subject: tools/mm/slabinfo: fix --partial long option mapping
Date: Mon, 8 Dec 2025 16:22:40 +0530

The long option "--partial" was incorrectly mapped to lowercase 'p' in the opts[] array, but the getopt string and switch case handle uppercase 'P'. This mismatch caused --partial to be rejected.

Fix the long_options mapping to use 'P' so --partial works correctly alongside the existing -P short option.

---

 tools/mm/slabinfo.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/mm/slabinfo.c renamed from tools/mm/slabinfo.c~tools-mm-slabinfo-fix-partial-long-option-mapping +1 -1
@@ -1405,7 +1405,7 @@ struct option opts[] = {
 	{ "numa", no_argument, NULL, 'n' },
 	{ "lines", required_argument, NULL, 'N'},
 	{ "ops", no_argument, NULL, 'o' },
-	{ "partial", no_argument, NULL, 'p'},
+	{ "partial", no_argument, NULL, 'P'},
 	{ "report", no_argument, NULL, 'r' },
 	{ "shrink", no_argument, NULL, 's' },
 	{ "Size", no_argument, NULL, 'S'},

_

Patches currently in -mm which might be from [email protected] are