[PATCH] fs: nullfs should include mount.h

From: Ben Dooks

Date: Wed Jun 17 2026 - 06:56:46 EST


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 <ben.dooks@xxxxxxxxxxxxxxx>
---
fs/nullfs.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/fs/nullfs.c b/fs/nullfs.c
index fdbd3e5d3d71..95079202fd48 100644
--- a/fs/nullfs.c
+++ b/fs/nullfs.c
@@ -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,
};
--
2.37.2.352.g3c44437643