From f64d945fa137e419065f67f74e3e4875f1467826 Mon Sep 17 00:00:00 2001 From: Ben Dooks Date: Wed, 17 Jun 2026 11:47:21 +0100 Subject: [PATCH] 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 Link: https://patch.msgid.link/20260617104721.900914-1-ben.dooks@codethink.co.uk Signed-off-by: Christian Brauner (Amutable) --- 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 #include +#include "mount.h" + static const struct super_operations nullfs_super_operations = { .statfs = simple_statfs, };