Skip to contentSkip to conversation

selftests: remove duplicated function definition

PATCH In review Chen Linxuan 2 participants 2 messages May 14, 2025 – May 15, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: remove duplicated function definition

I failed to build this test on Ubuntu 24.04. Compiler complains that function sys_open_tree has already been defined in "../filesystems/overlayfs/wrappers.h".

---
 tools/testing/selftests/mount_setattr/mount_setattr_test.c | 5 -----
 1 file changed, 5 deletions(-)
tools/testing/selftests/mount_setattr/mount_setattr_test.c +0 -5
index 48a000cabc971..eaa4e912120ab 100644
@@ -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;
Signature · 1 line
2.43.0
#1 lore raw
Quoted 6 lines · Chen Linxuan

I failed to build this test on Ubuntu 24.04. Compiler complains that function sys_open_tree has already been defined in "../filesystems/overlayfs/wrappers.h".

---

This is already fixed in the next vfs tree. Thanks though!