OpenCloudOS-Kernel/tools/testing/selftests/mount_setattr
Anh Tuan Phan f1594bc676 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 <tuananhlfc@gmail.com>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-03-31 09:18:45 -06:00
..
.gitignore tests: add mount_setattr() selftests 2021-01-24 14:43:45 +01:00
Makefile selftests/mount_setattr: fix to make run_tests failure 2023-02-13 16:37:29 -07:00
config tests: add mount_setattr() selftests 2021-01-24 14:43:45 +01:00
mount_setattr_test.c selftests mount: Fix mount_setattr_test builds failed 2023-03-31 09:18:45 -06:00