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 <ben.dooks@codethink.co.uk>
Link: https://patch.msgid.link/20260617104721.900914-1-ben.dooks@codethink.co.uk
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Ben Dooks
2026-06-17 11:47:21 +01:00
committed by Christian Brauner
parent 57d0ef995d
commit f64d945fa1

View File

@@ -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,
};