From: Philipp Zabel <p.zabel@pengutronix.de>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: matthias.bgg@gmail.com, open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] reset: Add missing function stub for device_reset
Date: Mon, 04 Apr 2016 18:19:19 +0200 [thread overview]
Message-ID: <1459786759.10375.2.camel@pengutronix.de> (raw)
In-Reply-To: <1459539496-823-1-git-send-email-daniel.lezcano@linaro.org>
Hi Daniel,
Am Freitag, den 01.04.2016, 21:38 +0200 schrieb Daniel Lezcano:
> The Mediatek's thermal driver fails to compile when the RESET_CONTROLLER
> option is not set. Logically, as the driver depends on this option to compile,
> the Kconfig should select it but actually that is not correct because the
> Kconfig provides also the COMPILE_TEST to increase the compile test coverage.
>
> By providing the missing 'device_reset' stub for the driver in reset.h, that
> let the kernel to compile on different platforms with the Mediatek thermal
> driver enabled with the COMPILE_TEST option.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> ---
> include/linux/reset.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/linux/reset.h b/include/linux/reset.h
> index c4c097d..db8cd7b 100644
> --- a/include/linux/reset.h
> +++ b/include/linux/reset.h
> @@ -72,6 +72,11 @@ static inline void reset_control_put(struct reset_control *rstc)
> WARN_ON(1);
> }
>
> +static inline int __must_check device_reset(struct device *dev)
> +{
+ WARN_ON(1);
> + return -ENOTSUPP;
> +}
> +
> static inline int device_reset_optional(struct device *dev)
> {
> return -ENOTSUPP;
Thank you, I've added the warning above and applied the patch.
best regards
Philipp
prev parent reply other threads:[~2016-04-04 16:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-01 19:38 Daniel Lezcano
2016-04-04 16:19 ` Philipp Zabel [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=1459786759.10375.2.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthias.bgg@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
Powered by JetHome