linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* crypto: caam - Fix argument type in handle_imx6_err005766
@ 2020-06-12  6:00 Herbert Xu
  2020-06-12  9:04 ` Iuliana Prodan
  0 siblings, 1 reply; 2+ messages in thread
From: Herbert Xu @ 2020-06-12  6:00 UTC (permalink / raw)
  To: Linux Crypto Mailing List, Iuliana Prodan, Radu Solea, Horia Geantă

The function handle_imx6_err005766 needs to take an __iomem argument
as otherwise sparse will generate two warnings.

Fixes: 33d69455e402 ("crypto: caam - limit AXI pipeline to a...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
index f3d20b7645e0..8ecfa97c3188 100644
--- a/drivers/crypto/caam/ctrl.c
+++ b/drivers/crypto/caam/ctrl.c
@@ -469,7 +469,7 @@ static int caam_get_era(struct caam_ctrl __iomem *ctrl)
  * pipeline to a depth of 1 (from it's default of 4) to preclude this situation
  * from occurring.
  */
-static void handle_imx6_err005766(u32 *mcr)
+static void handle_imx6_err005766(u32 __iomem *mcr)
 {
 	if (of_machine_is_compatible("fsl,imx6q") ||
 	    of_machine_is_compatible("fsl,imx6dl") ||
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: crypto: caam - Fix argument type in handle_imx6_err005766
  2020-06-12  6:00 crypto: caam - Fix argument type in handle_imx6_err005766 Herbert Xu
@ 2020-06-12  9:04 ` Iuliana Prodan
  0 siblings, 0 replies; 2+ messages in thread
From: Iuliana Prodan @ 2020-06-12  9:04 UTC (permalink / raw)
  To: Herbert Xu, Linux Crypto Mailing List, Radu Solea, Horia Geantă



On 6/12/2020 9:00 AM, Herbert Xu wrote:
> The function handle_imx6_err005766 needs to take an __iomem argument
> as otherwise sparse will generate two warnings.
> 
> Fixes: 33d69455e402 ("crypto: caam - limit AXI pipeline to a...")
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
> 
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>

Thanks,
Iulia

> diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
> index f3d20b7645e0..8ecfa97c3188 100644
> --- a/drivers/crypto/caam/ctrl.c
> +++ b/drivers/crypto/caam/ctrl.c
> @@ -469,7 +469,7 @@ static int caam_get_era(struct caam_ctrl __iomem *ctrl)
>    * pipeline to a depth of 1 (from it's default of 4) to preclude this situation
>    * from occurring.
>    */
> -static void handle_imx6_err005766(u32 *mcr)
> +static void handle_imx6_err005766(u32 __iomem *mcr)
>   {
>   	if (of_machine_is_compatible("fsl,imx6q") ||
>   	    of_machine_is_compatible("fsl,imx6dl") ||
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-12  9:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-12  6:00 crypto: caam - Fix argument type in handle_imx6_err005766 Herbert Xu
2020-06-12  9:04 ` Iuliana Prodan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).