linux-next: build failure after merge of the vfs-brauner tree
Subsystems (2)
Mark Brown
maintainerHi all,
After merging the vfs-brauner tree, today's linux-next build (arm64 kselftest) failed like this:
In file included from listns_efault_test.c:23:../pidfd/pidfd.h:229:19: error: static declaration of 'wait_for_pid' follows non-static declaration
229 | static inline int wait_for_pid(pid_t pid)
| ^~~~~~~~~~~~
In file included from listns_efault_test.c:22:
../filesystems/utils.h:47:12: note: previous declaration of 'wait_for_pid' with type 'int(pid_t)' {aka 'int(int)'}
47 | extern int wait_for_pid(pid_t pid);
| ^~~~~~~~~~~~ie, a new instance of a similar issue (probably masked by the build system with the earlier issue). This is due to a conflict with the preexisting wait_for_pid() in pidfd.h triggered by:
32f54f2bbccfd (selftests/filesystems: add tests for empty mount namespaces)
I am continuing to use the tree from next-20260312.
Quoted 14 lines · Mark Brown
Hi all,
After merging the vfs-brauner tree, today's linux-next build (arm64 kselftest) failed like this:
In file included from listns_efault_test.c:23:
../pidfd/pidfd.h:229:19: error: static declaration of 'wait_for_pid' follows non-static declaration
229 | static inline intwait_for_pid(pid_t pid)| ^~~~~~~~~~~~ In file included from listns_efault_test.c:22: ../filesystems/utils.h:47:12: note: previous declaration of 'wait_for_pid' with type 'int(pid_t)' {aka 'int(int)'} 47 | extern int wait_for_pid(pid_t pid); | ^~~~~~~~~~~~
Quoted 7 lines
ie, a new instance of a similar issue (probably masked by the build system with the earlier issue). This is due to a conflict with the preexisting
wait_for_pid()inpidfd.htriggered by:
32f54f2bbccfd(selftests/filesystems: add tests for empty mount namespaces)I am continuing to use the tree from next-20260312.
This should be fixed now. Sorry.
Mark Brown
maintainerQuoted 10 lines · Christian Brauner
Quoted 6 lines · Mark Brown
In file included from listns_efault_test.c:23:
../pidfd/pidfd.h:229:19: error: static declaration of 'wait_for_pid' follows non-static declaration
229 | static inline intwait_for_pid(pid_t pid)| ^~~~~~~~~~~~I am continuing to use the tree from next-20260312.
This should be fixed now. Sorry.
I'm still seeing this today. I have:
84f524dca4b8bc9e9aca8ea1dbbd2aa3a239d998 Merge branch 'namespaces-7.1.misc' into vfs.all
as the vfs-brauner tree, I'm not seeing any new patches to the test case there.
Mark Brown
maintainerQuoted 10 lines · Mark Brown
Quoted 8 lines · Christian Brauner
Quoted 6 lines · Mark Brown
In file included from listns_efault_test.c:23:
../pidfd/pidfd.h:229:19: error: static declaration of 'wait_for_pid' follows non-static declaration
229 | static inline intwait_for_pid(pid_t pid)| ^~~~~~~~~~~~I am continuing to use the tree from next-20260312.
Quoted 8 lines
Quoted 1 line
This should be fixed now. Sorry.
I'm still seeing this today. I have:
84f524dca4b8bc9e9aca8ea1dbbd2aa3a239d998Merge branch 'namespaces-7.1.misc' into vfs.allas the vfs-brauner tree, I'm not seeing any new patches to the test case there.
Still seeing this today.
Quoted 13 lines · Mark Brown
Quoted 12 lines · Mark Brown
Quoted 10 lines · Christian Brauner
Quoted 6 lines · Mark Brown
In file included from listns_efault_test.c:23:
../pidfd/pidfd.h:229:19: error: static declaration of 'wait_for_pid' follows non-static declaration
229 | static inline intwait_for_pid(pid_t pid)| ^~~~~~~~~~~~I am continuing to use the tree from next-20260312.
This should be fixed now. Sorry.
Quoted 8 lines
Quoted 6 lines
I'm still seeing this today. I have:
84f524dca4b8bc9e9aca8ea1dbbd2aa3a239d998Merge branch 'namespaces-7.1.misc' into vfs.allas the vfs-brauner tree, I'm not seeing any new patches to the test case there.
Still seeing this today.
Sorry, this was _yet_ another callsite that completely duplicates wait_for_pid() for whatever reason. The following patch should fix it. I'm adding this to vfs-7.1.mount today.
From ef6960362e5b33402b9977972ab2a9fabc4c8cb9 Mon Sep 17 00:00:00 2001
From: Christian Brauner <[email protected]>
Date: Tue, 31 Mar 2026 10:58:58 +0200
Subject: [PATCH] selftests/namespaces: remove unused utils.h include from
listns_efault_test
Remove the inclusion of ../filesystems/utils.h from listns_efault_test.c. The test doesn't use any symbols from that header. Including it alongside ../pidfd/pidfd.h causes a build failure because both headers define wait_for_pid() with conflicting linkage:
../filesystems/utils.h: extern int wait_for_pid(pid_t pid); ../pidfd/pidfd.h: static inline int wait_for_pid(pid_t pid)
All symbols the test actually uses (create_child, read_nointr, write_nointr, sys_pidfd_send_signal) come from pidfd.h.
--- tools/testing/selftests/namespaces/listns_efault_test.c | 1 - 1 file changed, 1 deletion(-)
tools/testing/selftests/namespaces/listns_efault_test.c +0 -1
@@ -19,7 +19,6 @@#include <sys/wait.h> #include <unistd.h> #include "../kselftest_harness.h" -#include "../filesystems/utils.h" #include "../pidfd/pidfd.h" #include "wrappers.h"
Signature · 1 line
2.47.3
Mark Brown
maintainerQuoted 3 lines · Christian Brauner
Sorry, this was _yet_ another callsite that completely duplicates
wait_for_pid()for whatever reason. The following patch should fix it. I'm adding this to vfs-7.1.mount today.
I'm not seeing that patch yet so the issue still remains, the current vfs-brauner tree I have is
84f524dca4b8bc9e9aca8ea1dbbd2aa3a239d998 Merge branch 'namespaces-7.1.misc' into vfs.all
from Thu Mar 26 17:02:16 2026 +0100 - did you forget to push?