summaryrefslogtreecommitdiff
path: root/fs/nfsd
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-07-08 15:54:08 +0300
committerJ. Bruce Fields <bfields@redhat.com>2019-07-10 02:36:33 +0300
commitb78fa45d4edb92fd7b882b2ec25b936cad412670 (patch)
treef65add95f7553706b7b763e566ba0a77f712b502 /fs/nfsd
parent297e57a24f6e2d5a041822003816124e48164eef (diff)
downloadlinux-b78fa45d4edb92fd7b882b2ec25b936cad412670.tar.xz
nfsd: Make __get_nfsdfs_client() static
Fix sparse warning: fs/nfsd/nfsctl.c:1221:22: warning: symbol '__get_nfsdfs_client' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfsctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 4683ba5c69c7..72fad54fc7e5 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -1218,7 +1218,7 @@ static void clear_ncl(struct inode *inode)
}
-struct nfsdfs_client *__get_nfsdfs_client(struct inode *inode)
+static struct nfsdfs_client *__get_nfsdfs_client(struct inode *inode)
{
struct nfsdfs_client *nc = inode->i_private;