From: Wei Ni <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> To: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> Cc: Eduardo Valentin <edubezval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, Zhang Rui <rui.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>, Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>, Alexandre Courbot <gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, Jon Hunter <jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>, linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Subject: Re: [PATCH] thermal: tegra: mark PM functions __maybe_unused Date: Tue, 19 Apr 2016 10:35:55 +0800 [thread overview] Message-ID: <5715998B.6080607@nvidia.com> (raw) In-Reply-To: <20160418071513.GA13078-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org> On 2016年04月18日 15:15, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Sat, Apr 16, 2016 at 10:19:33PM +0200, Arnd Bergmann wrote: >> After the PM support has been added to this driver, we get >> a harmless warning when that support is disabled at compile >> time: >> >> drivers/thermal/tegra/soctherm.c:641:12: error: 'soctherm_resume' defined but not used [-Werror=unused-function] >> static int soctherm_resume(struct device *dev) >> >> This marks the two PM functions as __maybe_unused to shut up >> the warning. This is preferred over adding an #ifdef around >> them, as it is harder to get wrong, and provides better >> compile-time coverage. >> >> Signed-off-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org> >> Fixes: a134b4143b65 ("thermal: tegra: add PM support") >> --- >> drivers/thermal/tegra/soctherm.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > The need for this should go away when Jon's generic power domain series Hi Thierry, Could you please show me the Jon's generic power domain series, so that I can verify it. Thanks. > gets merged (hopefully very soon now) and enabled on 32-bit ARM. In the > meantime: > > Acked-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > * Unknown Key > * 0x7F3EB3A1 >
WARNING: multiple messages have this Message-ID (diff)
From: Wei Ni <wni@nvidia.com> To: Thierry Reding <thierry.reding@gmail.com>, Arnd Bergmann <arnd@arndb.de> Cc: Eduardo Valentin <edubezval@gmail.com>, Zhang Rui <rui.zhang@intel.com>, Stephen Warren <swarren@wwwdotorg.org>, Alexandre Courbot <gnurou@gmail.com>, Jon Hunter <jonathanh@nvidia.com>, <linux-pm@vger.kernel.org>, <linux-tegra@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: Re: [PATCH] thermal: tegra: mark PM functions __maybe_unused Date: Tue, 19 Apr 2016 10:35:55 +0800 [thread overview] Message-ID: <5715998B.6080607@nvidia.com> (raw) In-Reply-To: <20160418071513.GA13078@ulmo.ba.sec> On 2016年04月18日 15:15, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Sat, Apr 16, 2016 at 10:19:33PM +0200, Arnd Bergmann wrote: >> After the PM support has been added to this driver, we get >> a harmless warning when that support is disabled at compile >> time: >> >> drivers/thermal/tegra/soctherm.c:641:12: error: 'soctherm_resume' defined but not used [-Werror=unused-function] >> static int soctherm_resume(struct device *dev) >> >> This marks the two PM functions as __maybe_unused to shut up >> the warning. This is preferred over adding an #ifdef around >> them, as it is harder to get wrong, and provides better >> compile-time coverage. >> >> Signed-off-by: Arnd Bergmann <arnd@arndb.de> >> Fixes: a134b4143b65 ("thermal: tegra: add PM support") >> --- >> drivers/thermal/tegra/soctherm.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > The need for this should go away when Jon's generic power domain series Hi Thierry, Could you please show me the Jon's generic power domain series, so that I can verify it. Thanks. > gets merged (hopefully very soon now) and enabled on 32-bit ARM. In the > meantime: > > Acked-by: Thierry Reding <treding@nvidia.com> > > * Unknown Key > * 0x7F3EB3A1 >
next prev parent reply other threads:[~2016-04-19 2:35 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-04-16 20:19 [PATCH] thermal: tegra: mark PM functions __maybe_unused Arnd Bergmann 2016-04-16 20:19 ` Arnd Bergmann 2016-04-18 7:15 ` Thierry Reding [not found] ` <20160418071513.GA13078-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org> 2016-04-19 2:35 ` Wei Ni [this message] 2016-04-19 2:35 ` Wei Ni 2016-04-19 12:43 ` Thierry Reding 2016-04-20 6:44 ` Wei Ni 2016-04-20 6:44 ` Wei Ni
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=5715998B.6080607@nvidia.com \ --to=wni-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \ --cc=arnd-r2nGTMty4D4@public.gmane.org \ --cc=edubezval-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \ --cc=gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \ --cc=jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \ --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=rui.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \ --cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \ --cc=thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.