selftests/fs/statmount: build with tools include dir
authorAmir Goldstein <amir73il@gmail.com>
Fri, 9 May 2025 13:32:34 +0000 (15:32 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 12 May 2025 09:40:12 +0000 (11:40 +0200)
commitb13fb4ee46472d7f7fc3e2172c08c06ed8b3f31c
treea03dbe6d95077ce5d0aae85ae0acbbb2a69971ae
parent0bd92b9fe538bc271c944c14b19cdf4434bef81e
selftests/fs/statmount: build with tools include dir

Copy the required headers files (mount.h, nsfs.h) to the tools
include dir and define the statmount/listmount syscall numbers
to decouple dependency with headers_install for the common cases.

Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/20250509133240.529330-3-amir73il@gmail.com
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/include/uapi/linux/mount.h [new file with mode: 0644]
tools/include/uapi/linux/nsfs.h [new file with mode: 0644]
tools/testing/selftests/filesystems/statmount/Makefile
tools/testing/selftests/filesystems/statmount/statmount.h