summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-11-14 22:01:41 +0800
committerTrond Myklebust <trond.myklebust@hammerspace.com>2019-11-18 10:47:38 +0100
commit000301042413c4e5d9f2227c60db8f12669fefce (patch)
tree2c4008a657e3fe1ab5b554ca58c17dc11037c9a2 /fs/nfs
parent913eca1aea87c3c6526fa5b166e524dff989deef (diff)
downloadlinux-000301042413c4e5d9f2227c60db8f12669fefce.tar.gz
linux-000301042413c4e5d9f2227c60db8f12669fefce.tar.bz2
linux-000301042413c4e5d9f2227c60db8f12669fefce.zip
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? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs42proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c
index 0a9720880e81..1fe83e0f663e 100644
--- a/fs/nfs/nfs42proc.c
+++ b/fs/nfs/nfs42proc.c
@@ -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 = {