summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2019-09-09 15:55:29 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-09-13 13:20:47 +0200
commit9575d1a5c0780ea26ff8dd29c94a32be32ce3c85 (patch)
treee5d05be22c165872c08640abdf99d2350e21952f /drivers/crypto
parentcrypto: ccree - enable CTS support in AES-XTS (diff)
downloadlinux-9575d1a5c0780ea26ff8dd29c94a32be32ce3c85.tar.xz
linux-9575d1a5c0780ea26ff8dd29c94a32be32ce3c85.zip
crypto: caam - Cast to long first before pointer conversion
While storing an int in a pointer is safe the compiler is not happy about it. So we need some extra casting in order to make this warning free. Fixes: 1d3f75bce123 ("crypto: caam - dispose of IRQ mapping only...") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/jr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/caam/jr.c b/drivers/crypto/caam/jr.c
index d11956bc358f..fc97cde27059 100644
--- a/drivers/crypto/caam/jr.c
+++ b/drivers/crypto/caam/jr.c
@@ -488,7 +488,7 @@ static int caam_jr_init(struct device *dev)
static void caam_jr_irq_dispose_mapping(void *data)
{
- irq_dispose_mapping((int)data);
+ irq_dispose_mapping((unsigned long)data);
}
/*
@@ -546,7 +546,7 @@ static int caam_jr_probe(struct platform_device *pdev)
}
error = devm_add_action_or_reset(jrdev, caam_jr_irq_dispose_mapping,
- (void *)jrpriv->irq);
+ (void *)(unsigned long)jrpriv->irq);
if (error)
return error;