Skip to contentSkip to conversation

mm/hugetlb: fix misspelled parameter names in comment

PATCH Applied Zhenghui Hao 3 participants 3 messages Sep 15 – Sep 16

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/hugetlb: fix misspelled parameter names in comment

The comment above hugepages_setup() refers to "hugepagsz" and "default_hugepagsz", but the parameters parsed by this code are "hugepagesz" and "default_hugepagesz". Fix the spelling and also drop the redundant spaces so the comment reads normally.

No functional change.

---
 mm/hugetlb.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
mm/hugetlb.c +3 -3
index 4f6f58bf3db6..68b97893a376 100644
@@ -4268,9 +4268,9 @@ static __init void hugetlb_parse_params(void)
 
 /*
  * hugepages command line processing
- * hugepages normally follows a valid hugepagsz or default_hugepagsz
- * specification.  If not, ignore the hugepages value.  hugepages can also
- * be the first huge page command line  option in which case it implicitly
+ * hugepages normally follows a valid hugepagesz or default_hugepagesz
+ * specification. If not, ignore the hugepages value. hugepages can also
+ * be the first huge page command line option in which case it implicitly
  * specifies the number of huge pages for the default size.
  */
 static int __init hugepages_setup(char *s)
Signature · 1 line
2.53.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Zhenghui Hao

The comment above hugepages_setup() refers to "hugepagsz" and "default_hugepagsz", but the parameters parsed by this code are "hugepagesz" and "default_hugepagesz". Fix the spelling and also drop the redundant spaces so the comment reads normally.

No functional change.

Thanks. This makes tree-wide searches for these command-line parameters more reliable.

Reviewed-by on v1 1/1
#2 lore raw
In reply to Zhenghui Hao
Quoted 6 lines · On Tue, 15 Sep 2026 16:20:29 +0800 Zhenghui Hao <[email protected]> wrote:

The comment above hugepages_setup() refers to "hugepagsz" and "default_hugepagsz", but the parameters parsed by this code are "hugepagesz" and "default_hugepagesz". Fix the spelling and also drop the redundant spaces so the comment reads normally.

No functional change.

Looks good to me.

Quoted 2 lines

Thanks,
SJ

[...]