fs: nullfs should include mount.h
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?
Signed-off-by Ben Dooks <[email protected]>
--- fs/nullfs.c | 2 ++ 1 file changed, 2 insertions(+)
fs/nullfs.c +2 -0
@@ -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