mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
selftests mount: Fix mount_setattr_test builds failed
[ Upstream commit f1594bc676
]
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 <tuananhlfc@gmail.com>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
38fe2a925f
commit
0a52f8d046
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
#include <grp.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdarg.h>
|
||||
#include <linux/mount.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue