diff options
author | Christian Brauner <brauner@kernel.org> | 2025-04-09 12:55:00 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-05-12 11:40:08 +0200 |
commit | 2680acd336412b5e8c34c64377e78d85e92739c9 (patch) | |
tree | aaf9402db5a33d086ca44fb81c360a9340becf64 | |
parent | 92a09c47464d040866cf2b4cd052bc60555185fb (diff) |
selftests/mount_settattr: don't define sys_open_tree() twice
CC mount_setattr_test
mount_setattr_test.c:176:19: error: redefinition of ‘sys_open_tree’
176 | static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags)
| ^~~~~~~~~~~~~
In file included from mount_setattr_test.c:23:
../filesystems/overlayfs/wrappers.h:59:19: note: previous definition of ‘sys_open_tree’ with type ‘int(int, const char *, unsigned int)’
59 | static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags)
Signed-off-by: Christian Brauner <brauner@kernel.org>
-rw-r--r-- | tools/testing/selftests/mount_setattr/mount_setattr_test.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/testing/selftests/mount_setattr/mount_setattr_test.c b/tools/testing/selftests/mount_setattr/mount_setattr_test.c index 48a000cabc97..eaa4e912120a 100644 --- a/tools/testing/selftests/mount_setattr/mount_setattr_test.c +++ b/tools/testing/selftests/mount_setattr/mount_setattr_test.c @@ -173,11 +173,6 @@ static inline int sys_mount_setattr(int dfd, const char *path, unsigned int flag #define AT_RECURSIVE 0x8000 /* Apply to the entire subtree */ #endif -static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags) -{ - return syscall(__NR_open_tree, dfd, filename, flags); -} - static ssize_t write_nointr(int fd, const void *buf, size_t count) { ssize_t ret; |