Skip to contentSkip to conversation

fs: nullfs should include mount.h

PATCH New Ben Dooks 1 participant 1 message Jun 17 VFS

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 fs: nullfs should include mount.h

The nullfs_fs_type is declared in mount.h but when declared in nullfs.c there is a warning as mount.h is not being included.

Add include of "mount.h" to remove the following sparse warning:
fs/nullfs.c:66:25: warning: symbol 'nullfs_fs_type' was not declared. Should it be static?

---
 fs/nullfs.c | 2 ++
 1 file changed, 2 insertions(+)
fs/nullfs.c +2 -0
index fdbd3e5d3d71..95079202fd48 100644
@@ -4,6 +4,8 @@
 #include <linux/fs_context.h>
 #include <linux/magic.h>
 
+#include "mount.h"
+
 static const struct super_operations nullfs_super_operations = {
 	.statfs	= simple_statfs,
 };
Signature · 1 line
2.37.2.352.g3c44437643