Skip to contentSkip to conversation

selftests: filesystems: mount-notify: remove kernel_fsid_t

PATCH New Bala-Vignesh-Reddy 1 participant 1 message Aug 27, 2025 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: filesystems: mount-notify: remove kernel_fsid_t

Build kselftests casues compile error:
error: conflicting types for ‘__kernel_fsid_t’;
have ‘struct <anonymous>’
22 | } __kernel_fsid_t;

This removes the declaration of kernel_fsid_t.

---
 .../filesystems/mount-notify/mount-notify_test.c          | 8 --------
 .../filesystems/mount-notify/mount-notify_test_ns.c       | 8 --------
 2 files changed, 16 deletions(-)
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c +0 -8
index 63ce708d93ed..a853671f2505 100644
@@ -14,14 +14,6 @@
 #include "../../kselftest_harness.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";
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c +0 -8
index 090a5ca65004..2ca867687a60 100644
@@ -15,14 +15,6 @@
 #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";
Signature · 1 line
2.43.0