selftests/vm: ksm_functional_tests: fixes for 32bit
authorDavid Hildenbrand <david@redhat.com>
Mon, 5 Dec 2022 19:37:16 +0000 (20:37 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Dec 2022 02:12:21 +0000 (18:12 -0800)
commit9d789c3b4170574baa4242dd8cae5988cf97d48d
treee7292fe6d75c7298c6db9abf8c9af1f649b57e3b
parent380969fe5aacdea661d3f9ab32e84327e8624ae2
selftests/vm: ksm_functional_tests: fixes for 32bit

The test currently fails on 32bit.  Fixing the "-1ull" vs.  "-1ul" seems
to make the test pass and the compiler happy.

Note: This test is not in mm-stable yet. This fix should be squashed into
      "selftests/vm: add KSM unmerge tests".

Link: https://lkml.kernel.org/r/20221205193716.276024-5-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/vm/ksm_functional_tests.c
tools/testing/selftests/vm/vm_util.c