]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs/nfs: fix missing declaration of nfs_idmap_cache_timeout
authorZhang Kunbo <zhangkunbo@huawei.com>
Tue, 17 Dec 2024 07:19:21 +0000 (07:19 +0000)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 17 Dec 2024 16:14:20 +0000 (11:14 -0500)
fs/nfs/super.c should include fs/nfs/nfs4idmap.h for
declaration of nfs_idmap_cache_timeout. This fixes the sparse warning:

fs/nfs/super.c:1397:14: warning: symbol 'nfs_idmap_cache_timeout' was not declared. Should it be static?

Signed-off-by: Zhang Kunbo <zhangkunbo@huawei.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/super.c

index ae5c5e39afa03c86fddaba56f666a2b2a5f606bf..aeb715b4a6902dc907b4b4cf2712232b080c497f 100644 (file)
@@ -73,6 +73,7 @@
 #include "nfs.h"
 #include "netns.h"
 #include "sysfs.h"
+#include "nfs4idmap.h"
 
 #define NFSDBG_FACILITY                NFSDBG_VFS