Re: [PATCH 1/2] crypto: caam: pass key buffers with typesafe pointers

2016-12-01 Thread Herbert Xu
On Wed, Nov 30, 2016 at 10:01:59PM +0100, Arnd Bergmann wrote: > The 'key' field is defined as a 'u64' and used for two different > pieces of information: either to store a pointer or a dma_addr_t. > The former leads to a build error on 32-bit machines: > > drivers/crypto/caam/caamalg_desc.c: In

[PATCH 1/2] crypto: caam: pass key buffers with typesafe pointers

2016-11-30 Thread Arnd Bergmann
The 'key' field is defined as a 'u64' and used for two different pieces of information: either to store a pointer or a dma_addr_t. The former leads to a build error on 32-bit machines: drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_aead_null_encap':