Skip to contentSkip to conversation

selftests: add missing include

PATCH Superseded Chen Linxuan 1 participant 1 message May 14, 2025

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

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.

---
 tools/testing/selftests/pid_namespace/pid_max.c | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/pid_namespace/pid_max.c +1 -0
index 51c414faabb0f..972bedc475f12 100644
@@ -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