Skip to content

Commit 9575d1a

Browse files
committed
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 <[email protected]> Reviewed-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 67caef0 commit 9575d1a

File tree

1 file changed

+2
-2
lines changed
  • drivers/crypto/caam

1 file changed

+2
-2
lines changed

drivers/crypto/caam/jr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ static int caam_jr_init(struct device *dev)
488488

489489
static void caam_jr_irq_dispose_mapping(void *data)
490490
{
491-
irq_dispose_mapping((int)data);
491+
irq_dispose_mapping((unsigned long)data);
492492
}
493493

494494
/*
@@ -546,7 +546,7 @@ static int caam_jr_probe(struct platform_device *pdev)
546546
}
547547

548548
error = devm_add_action_or_reset(jrdev, caam_jr_irq_dispose_mapping,
549-
(void *)jrpriv->irq);
549+
(void *)(unsigned long)jrpriv->irq);
550550
if (error)
551551
return error;
552552

0 commit comments

Comments
 (0)