nfsd: Make __get_nfsdfs_client() static
authorYueHaibing <yuehaibing@huawei.com>
Mon, 8 Jul 2019 12:54:08 +0000 (20:54 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 9 Jul 2019 23:36:33 +0000 (19:36 -0400)
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>
fs/nfsd/nfsctl.c

index 4683ba5c69c7e4e97d8c5da9bd83ea3510458b5f..72fad54fc7e5b0728aac7e0706669368114fec99 100644 (file)
@@ -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;