Skip to contentSkip to conversation

NFSv4: Make _nfs42_proc_copy_notify() static

PATCH New YueHaibing 1 participant 1 message Nov 14, 2019

Subsystems (2)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 NFSv4: Make _nfs42_proc_copy_notify() static

Fix sparse warning:

fs/nfs/nfs42proc.c:527:5: warning:
symbol '_nfs42_proc_copy_notify' was not declared. Should it be static?

---
 fs/nfs/nfs42proc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
fs/nfs/nfs42proc.c +3 -3
index aab6b7b..639aff8 100644
@@ -524,9 +524,9 @@ static int nfs42_do_offload_cancel_async(struct file *dst,
 	return status;
 }
 
-int _nfs42_proc_copy_notify(struct file *src, struct file *dst,
-			    struct nfs42_copy_notify_args *args,
-			    struct nfs42_copy_notify_res *res)
+static int _nfs42_proc_copy_notify(struct file *src, struct file *dst,
+				   struct nfs42_copy_notify_args *args,
+				   struct nfs42_copy_notify_res *res)
 {
 	struct nfs_server *src_server = NFS_SERVER(file_inode(src));
 	struct rpc_message msg = {
Signature · 1 line
2.7.4