[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250115105211.390370-3-ps.report@gmx.net>
Date: Wed, 15 Jan 2025 11:52:11 +0100
From: Peter Seiderer <ps.report@....net>
To: linux-kselftest@...r.kernel.org
Cc: Shuah Khan <shuah@...nel.org>,
linux-kernel@...r.kernel.org,
Christian Brauner <brauner@...nel.org>,
Peter Seiderer <ps.report@....net>
Subject: [PATCH v1 3/3] selftests: pid_namespace: add missing sys/mount.h include in pid_max.c
Fix compile on openSUSE Tumbleweed (gcc-14.2.1, glibc-2.40):
- add missing sys/mount.h include
Fixes:
pid_max.c: In function ‘pid_max_cb’:
pid_max.c:42:15: error: implicit declaration of function ‘mount’ [-Wimplicit-function-declaration]
42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~
Signed-off-by: Peter Seiderer <ps.report@....net>
---
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..96f274f0582b 100644
--- a/tools/testing/selftests/pid_namespace/pid_max.c
+++ b/tools/testing/selftests/pid_namespace/pid_max.c
@@ -10,6 +10,7 @@
#include <stdlib.h>
#include <string.h>
#include <syscall.h>
+#include <sys/mount.h>
#include <sys/wait.h>
#include "../kselftest_harness.h"
--
2.47.1
Powered by blists - more mailing lists