summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsctl.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-07-08 14:54:08 +0200
committerJ. Bruce Fields <bfields@redhat.com>2019-07-10 01:36:33 +0200
commitb78fa45d4edb92fd7b882b2ec25b936cad412670 (patch)
treef65add95f7553706b7b763e566ba0a77f712b502 /fs/nfsd/nfsctl.c
parentnfsd: Make two functions static (diff)
downloadlinux-b78fa45d4edb92fd7b882b2ec25b936cad412670.tar.xz
linux-b78fa45d4edb92fd7b882b2ec25b936cad412670.zip
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/nfsctl.c')
-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;