[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZN85+i518CGE6WgH@gondor.apana.org.au>
Date: Fri, 18 Aug 2023 17:29:30 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Horia Geantă <horia.geanta@....com>,
Pankaj Gupta <pankaj.gupta@....com>,
Gaurav Jain <gaurav.jain@....com>,
"David S. Miller" <davem@...emloft.net>,
Meenakshi Aggarwal <meenakshi.aggarwal@....com>,
Victoria Milhoan <vicki.milhoan@...escale.com>,
Franck LENORMAND <franck.lenormand@....com>,
Arnd Bergmann <arnd@...db.de>,
Vipul Kumar <vipul_kumar@...tor.com>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Dan Douglass <dan.douglass@....com>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: caam: fix PM operations definition
On Mon, Aug 07, 2023 at 01:16:43PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> The newly added PM operations use the deprecated SIMPLE_DEV_PM_OPS() macro,
> causing a warning in some configurations:
>
> drivers/crypto/caam/ctrl.c:828:12: error: 'caam_ctrl_resume' defined but not used [-Werror=unused-function]
> 828 | static int caam_ctrl_resume(struct device *dev)
> | ^~~~~~~~~~~~~~~~
> drivers/crypto/caam/ctrl.c:818:12: error: 'caam_ctrl_suspend' defined but not used [-Werror=unused-function]
> 818 | static int caam_ctrl_suspend(struct device *dev)
> | ^~~~~~~~~~~~~~~~~
> drivers/crypto/caam/jr.c:732:12: error: 'caam_jr_resume' defined but not used [-Werror=unused-function]
> 732 | static int caam_jr_resume(struct device *dev)
> | ^~~~~~~~~~~~~~
> drivers/crypto/caam/jr.c:687:12: error: 'caam_jr_suspend' defined but not used [-Werror=unused-function]
> 687 | static int caam_jr_suspend(struct device *dev)
> | ^~~~~~~~~~~~~~~
>
> Use the normal DEFINE_SIMPLE_DEV_PM_OPS() variant now, and use pm_ptr() to
> completely eliminate the structure in configs without CONFIG_PM.
>
> Fixes: 322d74752c28a ("crypto: caam - add power management support")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> drivers/crypto/caam/ctrl.c | 4 ++--
> drivers/crypto/caam/jr.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists