Skip to content

Commit

Permalink
nfsd: Make __get_nfsdfs_client() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and J. Bruce Fields committed Jul 9, 2019
1 parent 297e57a commit b78fa45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b78fa45

Please sign in to comment.