summaryrefslogtreecommitdiff
path: root/security/lsm_audit.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-11-30 21:01:59 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-09-25 07:25:21 (GMT)
commit3c361fd28c16e4a2153b72a2ed6501bc7af34dae (patch)
tree941f7813ea35aeefd685491bae1e112b34d77949 /security/lsm_audit.c
parent27691e32cbc7a805ebc5d2d2f8b56d0a3008dcff (diff)
downloadlinux-3c361fd28c16e4a2153b72a2ed6501bc7af34dae.tar.xz
crypto: caam - pass key buffers with typesafe pointers
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': drivers/crypto/caam/caamalg_desc.c:67:27: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] drivers/crypto/caam/caamalg_desc.c: In function 'cnstr_shdsc_aead_null_decap': drivers/crypto/caam/caamalg_desc.c:143:27: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] Using a union to provide correct types gets rid of the warnings and as well as a couple of redundant casts. Fixes: db57656b0072 ("crypto: caam - group algorithm related params") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'security/lsm_audit.c')
0 files changed, 0 insertions, 0 deletions