From: Lee Jones <lee.jones@linaro.org>
To: YueHaibing <yuehaibing@huawei.com>
Cc: tony.xie@rock-chips.com, stefan@olimex.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] mfd: rk808: Mark rk8xx_resume and rk8xx_suspend as __maybe_unused
Date: Thu, 25 Jul 2019 13:19:17 +0100 [thread overview]
Message-ID: <20190725121917.GH23883@dell> (raw)
In-Reply-To: <20190711033006.55320-1-yuehaibing@huawei.com>
On Thu, 11 Jul 2019, YueHaibing wrote:
> Fix build warning:
>
> drivers/mfd/rk808.c:752:12: warning: 'rk8xx_resume' defined but not used [-Wunused-function]
> drivers/mfd/rk808.c:732:12: warning: 'rk8xx_suspend' defined but not used [-Wunused-function]
>
> The function is declared unconditionally but only called
> while CONFIG_PM_SLEEP is set.
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
> drivers/mfd/rk808.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Arnd already fixed this.
> diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
> index 601cefb..9a9e631 100644
> --- a/drivers/mfd/rk808.c
> +++ b/drivers/mfd/rk808.c
> @@ -729,7 +729,7 @@ static int rk808_remove(struct i2c_client *client)
> return 0;
> }
>
> -static int rk8xx_suspend(struct device *dev)
> +static int __maybe_unused rk8xx_suspend(struct device *dev)
> {
> struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client);
> int ret = 0;
> @@ -749,7 +749,7 @@ static int rk8xx_suspend(struct device *dev)
> return ret;
> }
>
> -static int rk8xx_resume(struct device *dev)
> +static int __maybe_unused rk8xx_resume(struct device *dev)
> {
> struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client);
> int ret = 0;
--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
prev parent reply other threads:[~2019-07-25 12:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-11 3:30 [PATCH -next] mfd: rk808: Mark rk8xx_resume and rk8xx_suspend as __maybe_unused YueHaibing
2019-07-25 12:19 ` Lee Jones [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=20190725121917.GH23883@dell \
--to=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stefan@olimex.com \
--cc=tony.xie@rock-chips.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