[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210624073650.GE17892@gondor.apana.org.au>
Date: Thu, 24 Jun 2021 15:36:50 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: YueHaibing <yuehaibing@...wei.com>
Cc: ulli.kroll@...glemail.com, linus.walleij@...aro.org,
clabbe@...libre.com, davem@...emloft.net,
linux-arm-kernel@...ts.infradead.org, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 -next] crypto: sl3516 - Fix build warning without
CONFIG_PM
On Fri, Jun 18, 2021 at 05:35:51PM +0800, YueHaibing wrote:
> drivers/crypto/gemini/sl3516-ce-core.c:345:12:
> warning: ‘sl3516_ce_pm_resume’ defined but not used [-Wunused-function]
> static int sl3516_ce_pm_resume(struct device *dev)
> ^~~~~~~~~~~~~~~~~~~
>
> The driver needs PM, otherwise clock and resets are never set.
> So make it depends on PM to fix this warning.
>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
> Suggested-by: LABBE Corentin <clabbe@...libre.com>
> ---
> v2: Using depends on PM instead of #ifdef macro
>
> drivers/crypto/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
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