]> www.infradead.org Git - users/hch/misc.git/commit
selftests/mm: remove local __NR_* definitions
authorJohn Hubbard <jhubbard@nvidia.com>
Tue, 18 Jun 2024 02:24:22 +0000 (19:24 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:16 +0000 (19:30 -0700)
commita5c6bc590094a1a73cf6fa3f505e1945d2bf2461
treec4ae21b9099f157548af5b2009229d7566ed2632
parentd40f74ab9d6158979a20957ead0e0dec7040ec37
selftests/mm: remove local __NR_* definitions

This continues the work on getting the selftests to build without
requiring people to first run "make headers" [1].

Now that the system call numbers are in the correct, checked-in locations
in the kernel tree (./tools/include/uapi/asm/unistd*.h), make sure that
the mm selftests include that file (indirectly).

Doing so provides guaranteed definitions at build time, so remove all of
the checks for "ifdef __NR_xxx" in the mm selftests, because they will
always be true (defined).

[1] commit e076eaca5906 ("selftests: break the dependency upon local
header files")

Link: https://lkml.kernel.org/r/20240618022422.804305-7-jhubbard@nvidia.com
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Jeff Xu <jeffxu@chromium.org>
Cc: Andrei Vagin <avagin@google.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Kees Cook <kees@kernel.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Rich Felker <dalias@libc.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/hugepage-mremap.c
tools/testing/selftests/mm/ksm_functional_tests.c
tools/testing/selftests/mm/memfd_secret.c
tools/testing/selftests/mm/mkdirty.c
tools/testing/selftests/mm/mlock2.h
tools/testing/selftests/mm/pagemap_ioctl.c
tools/testing/selftests/mm/protection_keys.c
tools/testing/selftests/mm/uffd-common.c
tools/testing/selftests/mm/uffd-stress.c
tools/testing/selftests/mm/uffd-unit-tests.c