Skip to content

Commit 11f6dcf

Browse files
pseiderershuahkh
authored andcommitted
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); | ^~~~~ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Peter Seiderer <[email protected]> Reviewed-by: T.J. Mercier <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 23b8851 commit 11f6dcf

File tree

1 file changed

+1
-0
lines changed
  • tools/testing/selftests/pid_namespace

1 file changed

+1
-0
lines changed

tools/testing/selftests/pid_namespace/pid_max.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <stdlib.h>
1111
#include <string.h>
1212
#include <syscall.h>
13+
#include <sys/mount.h>
1314
#include <sys/wait.h>
1415

1516
#include "../kselftest_harness.h"

0 commit comments

Comments
 (0)