Skip to content

tools/mm/page-types: Fix misc bugs

Ye Liu linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] tools-mm-page-types-fix-kpageflags-option-argument-in-getopt_long.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3tools/mm/page-types: Fix typo in madvise() error messagetools/mm/page-types.c+2 -22 repliesApplied
2/3tools/mm/page-types: Fix ternary operator precedence in sigbus handlertools/mm/page-types.c+1 -12 repliesApplied
3/3tools/mm/page-types: Fix kpageflags option argument in getopt_longtools/mm/page-types.c+1 -12 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDavid Hildenbrand (Arm)SeongJae Park
1/3A-b R-b
2/3A-b
3/3A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] tools/mm/page-types: Fix misc bugs

From: Ye Liu <[email protected]>

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(-)
Signature · 1 line
2.43.0