]> www.infradead.org Git - users/jedix/linux-maple.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>
Mon, 20 Nov 2023 21:15:58 +0000 (13:15 -0800)
commitcf076d923ab0ced31ce1f11af64cf271a3523200
tree805a766b376d5a6f89d29b2962c2d3cb1b84572e
parent37e5ec1be340b160ab3140250acaa26b1d7cce0c
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