On Tue, Nov 29, 2016 at 10:22:49AM +0200, Horia Geantă wrote: > When building on 32-bit, compiler issues [-Wint-to-pointer-cast] warnings: > > drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_aead_null_encap': > drivers/crypto/caam/caamalg_desc.c:67:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] > append_key_as_imm(desc, (void *)adata->key, adata->keylen_pad, > [...] > > Since in all these cases the u64 "key" member of alginfo struct holds > a uintptr_t value, we can safely remove the warnings by explicitly casting > to uinptr_t (before any other existing cast). > > Fixes: 8cea7b66b821 ("crypto: caam - refactor encryption descriptors generation") > Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx> > Signed-off-by: Horia Geantă <horia.geanta@xxxxxxx> Thanks for the patch. I think Arnd's version is cleaner though so I'll take that instead. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html