* [PATCH -next] platform/chrome: Make function wilco_ec_transfer() static
@ 2019-02-16 6:09 Wei Yongjun
2019-02-18 10:14 ` Enric Balletbo i Serra
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2019-02-16 6:09 UTC (permalink / raw)
To: Benson Leung, Enric Balletbo i Serra, Duncan Laurie, Nick Crews
Cc: Wei Yongjun, linux-kernel, kernel-janitors
Fixes the following sparse warning:
drivers/platform/chrome/wilco_ec/mailbox.c:126:5: warning:
symbol 'wilco_ec_transfer' was not declared. Should it be static?
Fixes: 436dad4fda10 ("platform/chrome: Add new driver for Wilco EC")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/platform/chrome/wilco_ec/mailbox.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/chrome/wilco_ec/mailbox.c b/drivers/platform/chrome/wilco_ec/mailbox.c
index c7028488e575..f6ff29a11f1a 100644
--- a/drivers/platform/chrome/wilco_ec/mailbox.c
+++ b/drivers/platform/chrome/wilco_ec/mailbox.c
@@ -123,8 +123,9 @@ static void wilco_ec_prepare(struct wilco_ec_message *msg,
* Context: ec->mailbox_lock should be held while using this function.
* Return: number of bytes received or negative error code on failure.
*/
-int wilco_ec_transfer(struct wilco_ec_device *ec, struct wilco_ec_message *msg,
- struct wilco_ec_request *rq)
+static int wilco_ec_transfer(struct wilco_ec_device *ec,
+ struct wilco_ec_message *msg,
+ struct wilco_ec_request *rq)
{
struct wilco_ec_response *rs;
u8 checksum;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] platform/chrome: Make function wilco_ec_transfer() static
2019-02-16 6:09 [PATCH -next] platform/chrome: Make function wilco_ec_transfer() static Wei Yongjun
@ 2019-02-18 10:14 ` Enric Balletbo i Serra
0 siblings, 0 replies; 2+ messages in thread
From: Enric Balletbo i Serra @ 2019-02-18 10:14 UTC (permalink / raw)
To: Wei Yongjun, Benson Leung, Duncan Laurie, Nick Crews
Cc: linux-kernel, kernel-janitors
On 16/2/19 7:09, Wei Yongjun wrote:
> Fixes the following sparse warning:
>
> drivers/platform/chrome/wilco_ec/mailbox.c:126:5: warning:
> symbol 'wilco_ec_transfer' was not declared. Should it be static?
>
> Fixes: 436dad4fda10 ("platform/chrome: Add new driver for Wilco EC")
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
> drivers/platform/chrome/wilco_ec/mailbox.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
Applied for 5.1
Thanks
> diff --git a/drivers/platform/chrome/wilco_ec/mailbox.c b/drivers/platform/chrome/wilco_ec/mailbox.c
> index c7028488e575..f6ff29a11f1a 100644
> --- a/drivers/platform/chrome/wilco_ec/mailbox.c
> +++ b/drivers/platform/chrome/wilco_ec/mailbox.c
> @@ -123,8 +123,9 @@ static void wilco_ec_prepare(struct wilco_ec_message *msg,
> * Context: ec->mailbox_lock should be held while using this function.
> * Return: number of bytes received or negative error code on failure.
> */
> -int wilco_ec_transfer(struct wilco_ec_device *ec, struct wilco_ec_message *msg,
> - struct wilco_ec_request *rq)
> +static int wilco_ec_transfer(struct wilco_ec_device *ec,
> + struct wilco_ec_message *msg,
> + struct wilco_ec_request *rq)
> {
> struct wilco_ec_response *rs;
> u8 checksum;
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-18 10:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-16 6:09 [PATCH -next] platform/chrome: Make function wilco_ec_transfer() static Wei Yongjun
2019-02-18 10:14 ` Enric Balletbo i Serra
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®