* [PATCH -next] nfsd: Make __get_nfsdfs_client() static
@ 2019-07-08 12:54 YueHaibing
2019-07-09 23:36 ` J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2019-07-08 12:54 UTC (permalink / raw)
To: bfields, chuck.lever; +Cc: linux-kernel, linux-nfs, YueHaibing
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] nfsd: Make __get_nfsdfs_client() static
2019-07-08 12:54 [PATCH -next] nfsd: Make __get_nfsdfs_client() static YueHaibing
@ 2019-07-09 23:36 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2019-07-09 23:36 UTC (permalink / raw)
To: YueHaibing; +Cc: chuck.lever, linux-kernel, linux-nfs
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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-09 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-08 12:54 [PATCH -next] nfsd: Make __get_nfsdfs_client() static YueHaibing
2019-07-09 23:36 ` J. Bruce Fields
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.