[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250506154416.3102-1-moonhee.lee.ca@gmail.com>
Date: Tue, 6 May 2025 08:44:16 -0700
From: Moon Hee Lee <moonhee.lee.ca@...il.com>
To: brauner@...nel.org,
shuah@...nel.org
Cc: linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org,
skhan@...uxfoundation.org,
linux-kernel-mentees@...ts.linux.dev,
Moon Hee Lee <moonhee.lee.ca@...il.com>
Subject: [PATCH] selftests: pid_namespace: Fix missing mount headers in pid_max.c
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@...il.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
Powered by blists - more mailing lists