selftests/fs/mount-notify: build with tools include dir
authorAmir Goldstein <amir73il@gmail.com>
Fri, 9 May 2025 13:32:37 +0000 (15:32 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 12 May 2025 09:40:12 +0000 (11:40 +0200)
commitc6d9775c2066a37385e784ee2e0ce83bd6644610
treefa458d2790ff8d2511cbd2cfbe2f603034bc7464
parentec050f2adf378184b9cdf0c65d967bc2ca4045a6
selftests/fs/mount-notify: build with tools include dir

Copy the fanotify uapi header files to the tools include dir
and define __kernel_fsid_t to decouple dependency with headers_install
and then remove the redundant re-definitions of fanotify macros.

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