Skip to content

Commit 2680acd

Browse files
committed
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 <[email protected]>
1 parent 92a09c4 commit 2680acd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tools/testing/selftests/mount_setattr/mount_setattr_test.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,6 @@ static inline int sys_mount_setattr(int dfd, const char *path, unsigned int flag
173173
#define AT_RECURSIVE 0x8000 /* Apply to the entire subtree */
174174
#endif
175175

176-
static inline int sys_open_tree(int dfd, const char *filename, unsigned int flags)
177-
{
178-
return syscall(__NR_open_tree, dfd, filename, flags);
179-
}
180-
181176
static ssize_t write_nointr(int fd, const void *buf, size_t count)
182177
{
183178
ssize_t ret;

0 commit comments

Comments
 (0)