summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/filesystems/statmount/statmount.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2025-03-07 21:40:45 +0100
committerChristian Brauner <brauner@kernel.org>2025-03-11 12:04:02 +0100
commite1c24b52adb22136fa6f4025daf841384a6d0d1e (patch)
treeb54c3f4c288efed1ccfef332b0a567773539bbf3 /tools/testing/selftests/filesystems/statmount/statmount.h
parent7d90fb525319d9761a8560bbf8287bcc9789bfec (diff)
selftests: add tests for mount notification
Provide coverage for all mnt_notify_add() instances. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Link: https://lore.kernel.org/r/20250307204046.322691-1-mszeredi@redhat.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/testing/selftests/filesystems/statmount/statmount.h')
-rw-r--r--tools/testing/selftests/filesystems/statmount/statmount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/filesystems/statmount/statmount.h b/tools/testing/selftests/filesystems/statmount/statmount.h
index f4294bab9d73..a7a5289ddae9 100644
--- a/tools/testing/selftests/filesystems/statmount/statmount.h
+++ b/tools/testing/selftests/filesystems/statmount/statmount.h
@@ -25,7 +25,7 @@ static inline int statmount(uint64_t mnt_id, uint64_t mnt_ns_id, uint64_t mask,
return syscall(__NR_statmount, &req, buf, bufsize, flags);
}
-static ssize_t listmount(uint64_t mnt_id, uint64_t mnt_ns_id,
+static inline ssize_t listmount(uint64_t mnt_id, uint64_t mnt_ns_id,
uint64_t last_mnt_id, uint64_t list[], size_t num,
unsigned int flags)
{