[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210602122137.1161772-1-zgxgoo@gmail.com>
Date: Wed, 2 Jun 2021 05:21:37 -0700
From: Alex <zgxgoo@...il.com>
To: trond.myklebust@...merspace.com, anna.schumaker@...app.com
Cc: linux-kernel@...r.kernel.org, linux-nfs@...r.kernel.org,
zgxgoo@...il.com
Subject: [PATCH] fs/nfs: fix some -Wmissing-prototypes warnings we get a warning when building kernel with W=1: fs/nfs/nfs4file.c:318:1: warning: no previous prototype for ‘nfs42_ssc_open’ [-Wmissing-prototypes] fs/nfs/nfs4file.c:402:6: warning: no previous prototype for ‘nfs42_ssc_close’ [-Wmissing-prototypes]
Add the missing declaration in head file fs/nfs/nfs4_fs.h to fix this.
Signed-off-by: Alex <zgxgoo@...il.com>
---
fs/nfs/nfs4_fs.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 0c9505dc852c..0cb79afa0a63 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -656,4 +656,10 @@ static inline void nfs4_xattr_cache_zap(struct inode *inode)
#endif /* CONFIG_NFS_V4 */
+
+/* nfs4file.c */
+#ifdef CONFIG_NFS_V4_2
+struct file *nfs42_ssc_open(struct vfsmount *ss_mnt, struct nfs_fh *src_fh, nfs4_stateid *stateid);
+void nfs42_ssc_close(struct file *filep);
+#endif
#endif /* __LINUX_FS_NFS_NFS4_FS.H */
--
2.25.1
Powered by blists - more mailing lists