* [PATCH] selftests: pid_namespace: Fix missing mount headers in pid_max.c
@ 2025-05-06 15:44 Moon Hee Lee
0 siblings, 0 replies; only message in thread
From: Moon Hee Lee @ 2025-05-06 15:44 UTC (permalink / raw)
To: brauner, shuah
Cc: linux-kernel, linux-kselftest, skhan, linux-kernel-mentees,
Moon Hee Lee
Fix compilation error in pid_max.c by including <sys/mount.h> to define
mount(), umount2(), MS_PRIVATE, MS_REC, and MNT_DETACH.
The test now builds successfully.
Signed-off-by: Moon Hee Lee <moonhee.lee.ca@gmail.com>
---
tools/testing/selftests/pid_namespace/pid_max.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/pid_namespace/pid_max.c b/tools/testing/selftests/pid_namespace/pid_max.c
index 51c414faabb0..972bedc475f1 100644
--- a/tools/testing/selftests/pid_namespace/pid_max.c
+++ b/tools/testing/selftests/pid_namespace/pid_max.c
@@ -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"
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-06 15:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-06 15:44 [PATCH] selftests: pid_namespace: Fix missing mount headers in pid_max.c Moon Hee Lee
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).