* [PATCH] selftests: remove duplicated function definition
@ 2025-05-14 2:02 Chen Linxuan
2025-05-15 10:02 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Chen Linxuan @ 2025-05-14 2:02 UTC (permalink / raw)
To: Christian Brauner, Seth Forshee, Shuah Khan
Cc: zhanjun, niecheng1, Chen Linxuan, linux-fsdevel, linux-kselftest,
linux-kernel
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".
Signed-off-by: Chen Linxuan <chenlinxuan@uniontech.com>
---
tools/testing/selftests/mount_setattr/mount_setattr_test.c | 5 -----
1 file changed, 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 48a000cabc971..eaa4e912120ab 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;
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] selftests: remove duplicated function definition
2025-05-14 2:02 [PATCH] selftests: remove duplicated function definition Chen Linxuan
@ 2025-05-15 10:02 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2025-05-15 10:02 UTC (permalink / raw)
To: Chen Linxuan
Cc: Seth Forshee, Shuah Khan, zhanjun, niecheng1, linux-fsdevel,
linux-kselftest, linux-kernel
On Wed, May 14, 2025 at 10:02:02AM +0800, Chen Linxuan wrote:
> 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".
>
> Signed-off-by: Chen Linxuan <chenlinxuan@uniontech.com>
> ---
This is already fixed in the next vfs tree. Thanks though!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-15 10:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14 2:02 [PATCH] selftests: remove duplicated function definition Chen Linxuan
2025-05-15 10:02 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).