summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/vm/vm_util.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2022-12-05 22:37:16 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-12-12 05:12:21 +0300
commit9d789c3b4170574baa4242dd8cae5988cf97d48d (patch)
treee7292fe6d75c7298c6db9abf8c9af1f649b57e3b /tools/testing/selftests/vm/vm_util.c
parent380969fe5aacdea661d3f9ab32e84327e8624ae2 (diff)
downloadlinux-9d789c3b4170574baa4242dd8cae5988cf97d48d.tar.xz
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>
Diffstat (limited to 'tools/testing/selftests/vm/vm_util.c')
-rw-r--r--tools/testing/selftests/vm/vm_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/vm_util.c b/tools/testing/selftests/vm/vm_util.c
index 710571902743..40e795624ff3 100644
--- a/tools/testing/selftests/vm/vm_util.c
+++ b/tools/testing/selftests/vm/vm_util.c
@@ -50,7 +50,7 @@ unsigned long pagemap_get_pfn(int fd, char *start)
/* If present (63th bit), PFN is at bit 0 -- 54. */
if (entry & 0x8000000000000000ull)
return entry & 0x007fffffffffffffull;
- return -1ull;
+ return -1ul;
}
void clear_softdirty(void)