Skip to content
Commit 11f6dcf7 authored by Peter Seiderer's avatar Peter Seiderer Committed by Shuah Khan
Browse files

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/20250115105211.390370-3-ps.report@gmx.net


Signed-off-by: default avatarPeter Seiderer <ps.report@gmx.net>
Reviewed-by: default avatarT.J. Mercier <tjmercier@google.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 23b88515
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment