selftests: Add missing <sys/syscall.h> to mount_setattr test
Subsystems (3)
PATCH 1/1 selftests: Add missing <sys/syscall.h> to mount_setattr test
Including <sys/syscall.h> is required to define __NR_mount_setattr and __NR_open_tree which the mount_setattr test relies on.
Signed-off-by Daan De Meyer <[email protected]>
--- tools/testing/selftests/mount_setattr/mount_setattr_test.c | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/mount_setattr/mount_setattr_test.c +1 -0
@@ -11,6 +11,7 @@#include <sys/wait.h> #include <sys/vfs.h> #include <sys/statvfs.h> +#include <sys/syscall.h> #include <sys/sysinfo.h> #include <stdlib.h> #include <unistd.h>
Signature · 1 line
2.38.1
Quoted 5 lines · Daan De Meyer
Including <
sys/syscall.h> is required to define__NR_mount_setattrand__NR_open_treewhich themount_setattrtest relies on.Signed-off-by Daan De Meyer <[email protected]>---
Thanks for fixing this. Will pick this up now,
Quoted 13 lines · Daan De Meyer
Including <
sys/syscall.h> is required to define__NR_mount_setattrand__NR_open_treewhich themount_setattrtest relies on.Signed-off-by Daan De Meyer <[email protected]>--- tools/testing/selftests/mount_setattr/mount_setattr_test.c | 1 + 1 file changed, 1 insertion(+)tools/testing/selftests/mount_setattr/mount_setattr_test.c +0
-0
tools/testing/selftests/mount_setattr/mount_setattr_test.c line 17
Quoted 7 lines
tools/testing/selftests/mount_setattr/mount_setattr_test.c +1
-0@@ -11,6 +11,7 @@#include <sys/wait.h> #include <sys/vfs.h> #include <sys/statvfs.h> +#include <sys/syscall.h> #include <sys/sysinfo.h> #include <stdlib.h> #include <unistd.h>
Tested-by Siddh Raman Pant <[email protected]>
Though this oversight actually led to gcc detecting another another error [1], as it entered the #ifndef __NR_mount_setattr block.
Thanks,
Siddh