[PATCH 1/3] tools/mm/page-types: Fix typo in madvise() error message
From: Ye Liu
Date: Tue May 12 2026 - 22:21:49 EST
From: Ye Liu <liuye@xxxxxxxxxx>
Two error messages incorrectly spelled the madvise() function name as
"madvice". Fix the typo in both occurrences.
Signed-off-by: Ye Liu <liuye@xxxxxxxxxx>
---
tools/mm/page-types.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/mm/page-types.c b/tools/mm/page-types.c
index d7e5e8902af8..6594245217a8 100644
--- a/tools/mm/page-types.c
+++ b/tools/mm/page-types.c
@@ -997,7 +997,7 @@ static void walk_file_range(const char *name, int fd,
/* turn off readahead */
if (madvise(ptr, len, MADV_RANDOM))
- fatal("madvice failed: %s", name);
+ fatal("madvise failed: %s", name);
if (sigsetjmp(sigbus_jmp, 1)) {
end = off + sigbus_addr ? sigbus_addr - ptr : 0;
@@ -1015,7 +1015,7 @@ static void walk_file_range(const char *name, int fd,
/* turn off harvesting reference bits */
if (madvise(ptr, len, MADV_SEQUENTIAL))
- fatal("madvice failed: %s", name);
+ fatal("madvise failed: %s", name);
if (pagemap_read(buf, (unsigned long)ptr / page_size,
nr_pages) != nr_pages)
--
2.43.0