]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/mm/slabinfo: fix --partial long option mapping
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>
Mon, 8 Dec 2025 10:52:40 +0000 (16:22 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:24:43 +0000 (19:24 -0800)
commit8b8017d7c411403731ee4d502cdbd76e9425f0e1
tree76efc6c2ea1b9d6ac32afa4e0dce1867a33a4a10
parent9f5edd785da3cf373285259928d7f1f08c9ce758
tools/mm/slabinfo: fix --partial long option mapping

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.

Link: https://lkml.kernel.org/r/20251208105240.2719773-1-kaushlendra.kumar@intel.com
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Tested-by: SeongJae Park <sj@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/mm/slabinfo.c