All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] selftests mount: Fix mount_setattr_test builds failed
@ 2023-03-23 17:28 ` Anh Tuan Phan
  0 siblings, 0 replies; 8+ messages in thread
From: Anh Tuan Phan @ 2023-03-23 17:28 UTC (permalink / raw)
  To: brauner, sforshee, shuah
  Cc: Anh Tuan Phan, linux-fsdevel, linux-kernel-mentees

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 are might be because of linux/mount.h is not included. This patch resolves that issue.

Signed-off-by: Anh Tuan Phan <tuananhlfc@gmail.com>
---
 tools/testing/selftests/mount_setattr/mount_setattr_test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/mount_setattr/mount_setattr_test.c b/tools/testing/selftests/mount_setattr/mount_setattr_test.c
index 582669ca38e9..7ca13a924e34 100644
--- a/tools/testing/selftests/mount_setattr/mount_setattr_test.c
+++ b/tools/testing/selftests/mount_setattr/mount_setattr_test.c
@@ -18,6 +18,7 @@
 #include <grp.h>
 #include <stdbool.h>
 #include <stdarg.h>
+#include "linux/mount.h"
 
 #include "../kselftest_harness.h"
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-27  8:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 17:28 [PATCH v1] selftests mount: Fix mount_setattr_test builds failed Anh Tuan Phan
2023-03-23 17:28 ` Anh Tuan Phan
2023-03-23 18:07 ` Seth Forshee
2023-03-23 18:07   ` Seth Forshee
2023-03-24  2:14   ` [PATCH v2 1/1] " Anh Tuan Phan
2023-03-24  2:14     ` Anh Tuan Phan
2023-03-27  8:00     ` Christian Brauner
2023-03-27  8:00       ` Christian Brauner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.