From: Enric Balletbo i Serra <enric.balletbo@collabora.com>
To: "Ben Dooks (Codethink)" <ben.dooks@codethink.co.uk>
Cc: Benson Leung <bleung@chromium.org>,
Guenter Roeck <groeck@chromium.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] platform/chrome: cros-ec: make init_lock static
Date: Fri, 20 Dec 2019 10:04:50 +0100 [thread overview]
Message-ID: <67800cf2-fb2c-11d4-87cb-18e6e426e437@collabora.com> (raw)
In-Reply-To: <20191218100720.2420401-1-ben.dooks@codethink.co.uk>
Hi Ben,
Thanks for the patch.
On 18/12/19 11:07, Ben Dooks (Codethink) wrote:
> The init_lock is not declared or used outside of cros_ec_ishtp.c
> so make it static to avoid the following warning:
>
> drivers/platform/chrome/cros_ec_ishtp.c:79:1: warning: symbol 'init_lock' was not declared. Should it be static?
>
> Signed-off-by: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk>
Applied for 5.6
> ---
> Cc: Benson Leung <bleung@chromium.org>
> Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> Cc: Guenter Roeck <groeck@chromium.org>
> Cc: linux-kernel@vger.kernel.org
> ---
> drivers/platform/chrome/cros_ec_ishtp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/chrome/cros_ec_ishtp.c b/drivers/platform/chrome/cros_ec_ishtp.c
> index e5996821d08b..5f8e76f3022a 100644
> --- a/drivers/platform/chrome/cros_ec_ishtp.c
> +++ b/drivers/platform/chrome/cros_ec_ishtp.c
> @@ -76,7 +76,7 @@ struct cros_ish_in_msg {
> *
> * The writers are .reset() and .probe() function.
> */
> -DECLARE_RWSEM(init_lock);
> +static DECLARE_RWSEM(init_lock);
>
> /**
> * struct response_info - Encapsulate firmware response related
>
prev parent reply other threads:[~2019-12-20 9:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-18 10:07 Ben Dooks (Codethink)
2019-12-20 9:04 ` Enric Balletbo i Serra [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=67800cf2-fb2c-11d4-87cb-18e6e426e437@collabora.com \
--to=enric.balletbo@collabora.com \
--cc=ben.dooks@codethink.co.uk \
--cc=bleung@chromium.org \
--cc=groeck@chromium.org \
--cc=linux-kernel@vger.kernel.org \
/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®