mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Benjamin Coddington" <bcodding@redhat.com>
To: YueHaibing <yuehaibing@huawei.com>, bfields@fieldses.org
Cc: jlayton@kernel.org, trond.myklebust@hammerspace.com,
	anna.schumaker@netapp.com, linux-kernel@vger.kernel.org,
	linux-nfs@vger.kernel.org
Subject: Re: [PATCH -next] lockd: Make two symbols static
Date: Tue, 28 May 2019 06:49:13 -0400	[thread overview]
Message-ID: <97D052EC-1F07-4210-81CC-7E0085C095BD@redhat.com> (raw)
In-Reply-To: <20190528090652.13288-1-yuehaibing@huawei.com>

Maintainers, what's the best thing to do here: fold these into another 
patch version and post it (add attribution)?  Add it as another patch at 
the end of the series?

I have learned my lesson: add sparse to my workflow.

Ben

On 28 May 2019, at 5:06, YueHaibing wrote:

> Fix sparse warnings:
>
> fs/lockd/clntproc.c:57:6: warning: symbol 'nlmclnt_put_lockowner' was 
> not declared. Should it be static?
> fs/lockd/svclock.c:409:35: warning: symbol 'nlmsvc_lock_ops' was not 
> declared. Should it be static?
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>  fs/lockd/clntproc.c | 2 +-
>  fs/lockd/svclock.c  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/lockd/clntproc.c b/fs/lockd/clntproc.c
> index 0ff8ad4..b11f2af 100644
> --- a/fs/lockd/clntproc.c
> +++ b/fs/lockd/clntproc.c
> @@ -54,7 +54,7 @@ nlmclnt_get_lockowner(struct nlm_lockowner 
> *lockowner)
>  	return lockowner;
>  }
>
> -void nlmclnt_put_lockowner(struct nlm_lockowner *lockowner)
> +static void nlmclnt_put_lockowner(struct nlm_lockowner *lockowner)
>  {
>  	if (!refcount_dec_and_lock(&lockowner->count, 
> &lockowner->host->h_lock))
>  		return;
> diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c
> index 5f9f19b..61d3cc2 100644
> --- a/fs/lockd/svclock.c
> +++ b/fs/lockd/svclock.c
> @@ -406,7 +406,7 @@ static void nlmsvc_locks_release_private(struct 
> file_lock *fl)
>  	nlmsvc_put_lockowner((struct nlm_lockowner *)fl->fl_owner);
>  }
>
> -const struct file_lock_operations nlmsvc_lock_ops = {
> +static const struct file_lock_operations nlmsvc_lock_ops = {
>  	.fl_copy_lock = nlmsvc_locks_copy_lock,
>  	.fl_release_private = nlmsvc_locks_release_private,
>  };
> -- 
> 2.7.4

  reply	other threads:[~2019-05-28 10:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-28  9:06 YueHaibing
2019-05-28 10:49 ` Benjamin Coddington [this message]
2019-05-28 15:13   ` J. Bruce Fields
2019-05-28 15:19     ` Chuck Lever

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=97D052EC-1F07-4210-81CC-7E0085C095BD@redhat.com \
    --to=bcodding@redhat.com \
    --cc=anna.schumaker@netapp.com \
    --cc=bfields@fieldses.org \
    --cc=jlayton@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@hammerspace.com \
    --cc=yuehaibing@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®