[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200630210801.GA3920527@ubuntu-s3-xlarge-x86>
Date: Tue, 30 Jun 2020 14:08:01 -0700
From: Nathan Chancellor <natechancellor@...il.com>
To: Aisheng Dong <aisheng.dong@....com>
Cc: Jassi Brar <jassisinghbrar@...il.com>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
dl-linux-imx <linux-imx@....com>,
Anson Huang <anson.huang@....com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH] mailbox: imx: Mark PM functions as __maybe_unused
On Tue, Jun 23, 2020 at 02:14:05AM +0000, Aisheng Dong wrote:
> > From: Nathan Chancellor <natechancellor@...il.com>
> > Sent: Tuesday, June 23, 2020 9:04 AM
> >
> > When CONFIG_PM and CONFIG_PM_SLEEP are unset, the following warnings
> > occur:
> >
> > drivers/mailbox/imx-mailbox.c:638:12: warning: 'imx_mu_runtime_resume'
> > defined but not used [-Wunused-function]
> > 638 | static int imx_mu_runtime_resume(struct device *dev)
> > | ^~~~~~~~~~~~~~~~~~~~~
> > drivers/mailbox/imx-mailbox.c:629:12: warning: 'imx_mu_runtime_suspend'
> > defined but not used [-Wunused-function]
> > 629 | static int imx_mu_runtime_suspend(struct device *dev)
> > | ^~~~~~~~~~~~~~~~~~~~~~
> > drivers/mailbox/imx-mailbox.c:611:12: warning: 'imx_mu_resume_noirq'
> > defined but not used [-Wunused-function]
> > 611 | static int imx_mu_resume_noirq(struct device *dev)
> > | ^~~~~~~~~~~~~~~~~~~
> > drivers/mailbox/imx-mailbox.c:601:12: warning: 'imx_mu_suspend_noirq'
> > defined but not used [-Wunused-function]
> > 601 | static int imx_mu_suspend_noirq(struct device *dev)
> > | ^~~~~~~~~~~~~~~~~~~~
> >
> > Mark these functions as __maybe_unused, which is the standard procedure for
> > PM functions.
> >
> > Fixes: bb2b2624dbe2 ("mailbox: imx: Add runtime PM callback to handle MU
> > clocks")
> > Signed-off-by: Nathan Chancellor <natechancellor@...il.com>
>
> Thanks for catching this.
>
> Reviewed-by: Dong Aisheng <aisheng.dong@....com>
>
> Regards
> Aisheng
Thank you for the review :)
These warnings were introduced by a patch in this merge window, it would
be nice if this patch could be fixed up as a fix for that but I
understand if it is too late for that.
Cheers,
Nathan
Powered by blists - more mailing lists