diff options
author | Stefan Agner <stefan@agner.ch> | 2018-03-24 14:02:42 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-30 20:33:14 +0300 |
commit | a2e5d408a46372b8fba9b1af592edc6fa3fc93a9 (patch) | |
tree | fa71fafe6482cfac3ab76b08fa7e5759648fe5aa /crypto | |
parent | 8f0691fc51e1ce06ccfccb7336320331a9521b9d (diff) | |
download | linux-a2e5d408a46372b8fba9b1af592edc6fa3fc93a9.tar.xz |
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')
0 files changed, 0 insertions, 0 deletions