]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/selftests: fix pagemap_ioctl memory map test
authorPeter Xu <peterx@redhat.com>
Thu, 16 Nov 2023 20:15:47 +0000 (15:15 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Dec 2023 00:12:45 +0000 (16:12 -0800)
commit3f3cac5c0a5c3b09bdfb919a7518dca83523a52c
tree45d112288095bdcd7a96b8c419264da2dd723731
parent4980e837cab7e2acc4dad18dba656c6896c531aa
mm/selftests: fix pagemap_ioctl memory map test

__FILE__ is not guaranteed to exist in current dir.  Replace that with
argv[0] for memory map test.

Link: https://lkml.kernel.org/r/20231116201547.536857-4-peterx@redhat.com
Fixes: 46fd75d4a3c9 ("selftests: mm: add pagemap ioctl tests")
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Andrei Vagin <avagin@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/pagemap_ioctl.c