diff options
Diffstat (limited to 'tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c')
| -rw-r--r-- | tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c | 18 | 
1 files changed, 8 insertions, 10 deletions
| diff --git a/tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c b/tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c index 090a5ca65004..9f57ca46e3af 100644 --- a/tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c +++ b/tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c @@ -2,6 +2,13 @@  // Copyright (c) 2025 Miklos Szeredi <miklos@szeredi.hu>  #define _GNU_SOURCE + +// Needed for linux/fanotify.h +typedef struct { +	int	val[2]; +} __kernel_fsid_t; +#define __kernel_fsid_t __kernel_fsid_t +  #include <fcntl.h>  #include <sched.h>  #include <stdio.h> @@ -10,21 +17,12 @@  #include <sys/mount.h>  #include <unistd.h>  #include <sys/syscall.h> +#include <sys/fanotify.h>  #include "../../kselftest_harness.h" -#include "../../pidfd/pidfd.h"  #include "../statmount/statmount.h"  #include "../utils.h" -// Needed for linux/fanotify.h -#ifndef __kernel_fsid_t -typedef struct { -	int	val[2]; -} __kernel_fsid_t; -#endif - -#include <sys/fanotify.h> -  static const char root_mntpoint_templ[] = "/tmp/mount-notify_test_root.XXXXXX";  static const int mark_types[] = { | 
