[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250514020040.197152-2-chenlinxuan@uniontech.com>
Date: Wed, 14 May 2025 10:00:40 +0800
From: Chen Linxuan <chenlinxuan@...ontech.com>
To: Christian Brauner <brauner@...nel.org>,
Shuah Khan <shuah@...nel.org>
Cc: Chen Linxuan <chenlinxuan@...ontech.com>,
linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org
Subject: [PATCH] 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 <chenlinxuan@...ontech.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 51c414faabb0f..972bedc475f12 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