Skip to content

selftests/mm: pagemap_ioctl test fixes and cleanups

Zenghui Yu linux-kselftest linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] selftests-mm-init-page-sizes-early-in-pagemap_ioctl-test.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesApplied 3/3
  2. v11 patch 4 repliesSuperseded

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3selftests/mm: fix size truncation in pagemap_ioctl testtools/testing/selftests/mm/pagemap_ioctl.c+29 -261 replyApplied
2/3selftests/mm: mark file-local symbols of pagemap_ioctl.c statictools/testing/selftests/mm/pagemap_ioctl.c+21 -221 replyApplied
3/3selftests/mm: init page sizes early in pagemap_ioctl testtools/testing/selftests/mm/pagemap_ioctl.c+5 -54 repliesApplied

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

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

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

Read the v2 thread

Cover letter [PATCH v2 0/3] selftests/mm: pagemap_ioctl test fixes and cleanups

From: "Zenghui Yu (Huawei)" <[email protected]>

This series fixes a size truncation bug in the pagemap_ioctl test that breaks it on arm64 systems with 64K base pages, and applies two small cleanups suggested during the review of the fix.

* From v1 [1]:
- unify all size-related parameters and variables to size_t (David)
- drop Gregory's R-b for patch #1 (as the content has changed too much) but thank you for that!
- add patch #2 marking file-local symbols static (David)
- add patch #3 initializing page sizes early (Andrew)

[1] https://lore.kernel.org/[email protected]

Zenghui Yu (Huawei) (3):
selftests/mm: fix size truncation in pagemap_ioctl test selftests/mm: mark file-local symbols of pagemap_ioctl.c static selftests/mm: init page sizes early in pagemap_ioctl test

 tools/testing/selftests/mm/pagemap_ioctl.c | 94 +++++++++++-----------
 1 file changed, 48 insertions(+), 46 deletions(-)
Signature · 1 line
2.53.0