Skip to content

Commit f1594bc

Browse files
tuananhlfcshuahkh
authored andcommitted
selftests mount: Fix mount_setattr_test builds failed
When compiling selftests with target mount_setattr I encountered some errors with the below messages: mount_setattr_test.c: In function ‘mount_setattr_thread’: mount_setattr_test.c:343:16: error: variable ‘attr’ has initializer but incomplete type 343 | struct mount_attr attr = { | ^~~~~~~~~~ These errors might be because of linux/mount.h is not included. This patch resolves that issue. Signed-off-by: Anh Tuan Phan <[email protected]> Acked-by: Christian Brauner <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 05107ed commit f1594bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/mount_setattr/mount_setattr_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <grp.h>
1919
#include <stdbool.h>
2020
#include <stdarg.h>
21+
#include <linux/mount.h>
2122

2223
#include "../kselftest_harness.h"
2324

0 commit comments

Comments
 (0)