summaryrefslogtreecommitdiffstats
path: root/crypto/ahash.c
diff options
context:
space:
mode:
authorStefan Agner2018-03-24 12:02:42 +0100
committerHerbert Xu2018-03-30 19:33:14 +0200
commita2e5d408a46372b8fba9b1af592edc6fa3fc93a9 (patch)
treefa71fafe6482cfac3ab76b08fa7e5759648fe5aa /crypto/ahash.c
parentcrypto: talitos - don't leak pointers to authenc keys (diff)
downloadkernel-qcow2-linux-a2e5d408a46372b8fba9b1af592edc6fa3fc93a9.tar.gz
kernel-qcow2-linux-a2e5d408a46372b8fba9b1af592edc6fa3fc93a9.tar.xz
kernel-qcow2-linux-a2e5d408a46372b8fba9b1af592edc6fa3fc93a9.zip
crypto: brcm - explicitly cast cipher to hash type
In the AES cases enum spu_cipher_type and enum hash_type have the same values, so the assignment is fine. Explicitly cast the enum type conversion. This fixes two warnings when building with clang: drivers/crypto/bcm/cipher.c:821:34: warning: implicit conversion from enumeration type 'enum spu_cipher_type' to different enumeration type 'enum hash_type' [-Wenum-conversion] hash_parms.type = cipher_parms.type; ~ ~~~~~~~~~~~~~^~~~ drivers/crypto/bcm/cipher.c:1412:26: warning: implicit conversion from enumeration type 'enum spu_cipher_type' to different enumeration type 'enum hash_type' [-Wenum-conversion] hash_parms.type = ctx->cipher_type; ~ ~~~~~^~~~~~~~~~~ Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ahash.c')
0 files changed, 0 insertions, 0 deletions