Skip to content

selftests/vm: fix some tests on 32bit

David Hildenbrand linux-kselftest linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] selftests-vm-ksm_functional_tests-fixes-for-32bit.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4mm/gup_test: fix PIN_LONGTERM_TEST_READ with highmemmm/gup_test.c+7 -30 repliesApplied
2/4selftests/vm: madv_populate: fix missing MADV_POPULATE_(READ|WRITE) definitionstools/testing/selftests/vm/madv_populate.c+7 -00 repliesApplied
3/4selftests/vm: cow: fix compile warning on 32bittools/testing/selftests/vm/cow.c+2 -20 repliesApplied
4/4selftests/vm: ksm_functional_tests: fixes for 32bittools/testing/selftests/vm/ksm_functional_tests.c tools/testing/selftests/vm/vm_util.c+3 -30 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH mm-unstable v1 0/4] selftests/vm: fix some tests on 32bit

I finally had the time to run some of the selftests written by me (especially "cow") on x86 PAE. I found some unexpected "surprises" :)

With these changes, and with [1] on top of mm-unstable, the "cow" tests and the "ksm_functional_tests" compile and pass as expected (expected failures with hugetlb in the "cow" tests). "madv_populate" has one expected test failure -- x86 does not support softdirty tracking.

#1-#3 fix commits with stable commit ids. #4 fixes a test that is not in mm-stable yet.

A note that there are many other compile errors/warnings when compiling on 32bit and with older Linux headers ... something for another day.

[1] https://lkml.kernel.org/r/[email protected]

Cc Andrew Morton <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Yang Li <[email protected]>

David Hildenbrand (4):
mm/gup_test: fix PIN_LONGTERM_TEST_READ with highmem selftests/vm: madv_populate: fix missing MADV_POPULATE_(READ|WRITE)
definitions
selftests/vm: cow: fix compile warning on 32bit selftests/vm: ksm_functional_tests: fixes for 32bit

 mm/gup_test.c                                     | 10 +++++++---
 tools/testing/selftests/vm/cow.c                  |  4 ++--
 tools/testing/selftests/vm/ksm_functional_tests.c |  4 ++--
 tools/testing/selftests/vm/madv_populate.c        |  7 +++++++
 tools/testing/selftests/vm/vm_util.c              |  2 +-
 5 files changed, 19 insertions(+), 8 deletions(-)
Signature · 1 line
2.38.1