mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Tom Rix <trix@redhat.com>, vincent.sunplus@gmail.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] nvmem: change sp_otp_v0 from global to static
Date: Fri, 29 Apr 2022 10:34:22 +0100	[thread overview]
Message-ID: <917b4cc2-4bb0-d123-006b-ffec2226b79a@linaro.org> (raw)
In-Reply-To: <20220403133906.1379832-1-trix@redhat.com>



On 03/04/2022 14:39, Tom Rix wrote:
> Smatch reports this issue
> sunplus-ocotp.c:74:29: warning: symbol 'sp_otp_v0'
>    was not declared. Should it be static?
> 
> sp_otp_v0 is only used in sunplus-ocotp.c.  File
> scope variables used only in one file should
> be static. Change sp_otp_v0's storage-class-specifier
> from global to static.
> 
> Signed-off-by: Tom Rix <trix@redhat.com>
> ---

There is already a patch for this in next.


--srini
>   drivers/nvmem/sunplus-ocotp.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/nvmem/sunplus-ocotp.c b/drivers/nvmem/sunplus-ocotp.c
> index 2dc59c22eb55..e0b11e13f5f8 100644
> --- a/drivers/nvmem/sunplus-ocotp.c
> +++ b/drivers/nvmem/sunplus-ocotp.c
> @@ -71,7 +71,7 @@ struct sp_ocotp_data {
>   	int size;
>   };
>   
> -const struct sp_ocotp_data  sp_otp_v0 = {
> +static const struct sp_ocotp_data  sp_otp_v0 = {
>   	.size = QAC628_OTP_SIZE,
>   };
>   

      reply	other threads:[~2022-04-29  9:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-03 13:39 Tom Rix
2022-04-29  9:34 ` Srinivas Kandagatla [this message]

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=917b4cc2-4bb0-d123-006b-ffec2226b79a@linaro.org \
    --to=srinivas.kandagatla@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trix@redhat.com \
    --cc=vincent.sunplus@gmail.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®