From: Ye Liu <ye.liu@linux.dev>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Ye Liu <liuye@kylinos.cn>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: [PATCH 1/3] tools/mm/page-types: Fix typo in madvise() error message
Date: Wed, 13 May 2026 10:21:16 +0800 [thread overview]
Message-ID: <20260513022120.58033-2-ye.liu@linux.dev> (raw)
In-Reply-To: <20260513022120.58033-1-ye.liu@linux.dev>
From: Ye Liu <liuye@kylinos.cn>
Two error messages incorrectly spelled the madvise() function name as
"madvice". Fix the typo in both occurrences.
Signed-off-by: Ye Liu <liuye@kylinos.cn>
---
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
next prev parent reply other threads:[~2026-05-13 2:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 2:21 [PATCH 0/3] tools/mm/page-types: Fix misc bugs Ye Liu
2026-05-13 2:21 ` Ye Liu [this message]
2026-05-13 10:18 ` [PATCH 1/3] tools/mm/page-types: Fix typo in madvise() error message David Hildenbrand (Arm)
2026-05-14 0:23 ` SeongJae Park
2026-05-13 2:21 ` [PATCH 2/3] tools/mm/page-types: Fix ternary operator precedence in sigbus handler Ye Liu
2026-05-13 10:24 ` David Hildenbrand (Arm)
2026-05-14 0:53 ` SeongJae Park
2026-05-13 2:21 ` [PATCH 3/3] tools/mm/page-types: Fix kpageflags option argument in getopt_long Ye Liu
2026-05-13 10:27 ` David Hildenbrand (Arm)
2026-05-14 0:57 ` SeongJae Park
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260513022120.58033-2-ye.liu@linux.dev \
--to=ye.liu@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=liuye@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.