selftests: add missing include
Subsystems (2)
PATCH 1/1 selftests: add missing include
I failed to build this test on Ubuntu 24.04.
Compiler complained about undefined functions mount, umount and some mount related flags.
Signed-off-by Chen Linxuan <[email protected]>
--- tools/testing/selftests/pid_namespace/pid_max.c | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/pid_namespace/pid_max.c +1 -0
@@ -11,6 +11,7 @@#include <string.h> #include <syscall.h> #include <sys/wait.h> +#include <sys/mount.h> #include "../kselftest_harness.h" #include "../pidfd/pidfd.h"
Signature · 1 line
2.43.0