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>
static void caam_jr_irq_dispose_mapping(void *data)
{
- irq_dispose_mapping((int)data);
+ irq_dispose_mapping((unsigned long)data);
}
/*
}
error = devm_add_action_or_reset(jrdev, caam_jr_irq_dispose_mapping,
- (void *)jrpriv->irq);
+ (void *)(unsigned long)jrpriv->irq);
if (error)
return error;