• Stefan Agner's avatar
    crypto: brcm - explicitly cast cipher to hash type · a2e5d408
    Stefan Agner authored
    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's avatarStefan Agner <stefan@agner.ch>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    a2e5d408
Name
Last commit
Last update
..
Makefile Loading commit data...
cipher.c Loading commit data...
cipher.h Loading commit data...
spu.c Loading commit data...
spu.h Loading commit data...
spu2.c Loading commit data...
spu2.h Loading commit data...
spum.h Loading commit data...
util.c Loading commit data...
util.h Loading commit data...