[-next] nfsd: Make __get_nfsdfs_client() static
diff mbox series

Message ID 20190708125408.56016-1-yuehaibing@huawei.com
State New
Headers show
Series
  • [-next] nfsd: Make __get_nfsdfs_client() static
Related show

Commit Message

YueHaibing July 8, 2019, 12:54 p.m. UTC
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>
---
 fs/nfsd/nfsctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

J. Bruce Fields July 9, 2019, 11:36 p.m. UTC | #1
Thanks, applied.--b.

On Mon, Jul 08, 2019 at 08:54:08PM +0800, YueHaibing wrote:
> 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>
> ---
>  fs/nfsd/nfsctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
> index 53833b3..0a9a49d 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;
>  
> -- 
> 2.7.4
>

Patch
diff mbox series

diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 53833b3..0a9a49d 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;