[PATCH 0/3] tools/mm/page-types: Fix misc bugs
From: Ye Liu
Date: Tue May 12 2026 - 22:21:41 EST
From: Ye Liu <liuye@xxxxxxxxxx>
This series fixes three issues in tools/mm/page-types.c:
1. Fix two typos in madvise() error messages ("madvice" -> "madvise")
2. Fix operator precedence bug in the sigbus handler where the ternary
operator binds looser than addition, producing incorrect offset
calculation when sigbus_addr is non-NULL
3. Fix --kpageflags option declaration in getopt_long: has_arg should
be 1 (required_argument) since the option requires a file path
Ye Liu (3):
tools/mm/page-types: Fix typo in madvise() error message
tools/mm/page-types: Fix ternary operator precedence in sigbus handler
tools/mm/page-types: Fix kpageflags option argument in getopt_long
tools/mm/page-types.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--
2.43.0