OpenCloudOS-Kernel/drivers/crypto/bcm
Stefan Agner a2e5d408a4 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>
2018-03-31 01:33:14 +08:00
..
Makefile crypto: brcm - Add Broadcom SPU driver 2017-02-11 17:55:20 +08:00
cipher.c crypto: brcm - explicitly cast cipher to hash type 2018-03-31 01:33:14 +08:00
cipher.h crypto: bcm - Use GCM IV size constant 2017-09-22 17:43:12 +08:00
spu.c crypto: brcm - Add Broadcom SPU driver 2017-02-11 17:55:20 +08:00
spu.h crypto: brcm - Add Broadcom SPU driver 2017-02-11 17:55:20 +08:00
spu2.c crypto: brcm - Fix SHA3-512 algorithm failure 2017-07-18 17:00:59 +08:00
spu2.h crypto: brcm - Add Broadcom SPU driver 2017-02-11 17:55:20 +08:00
spum.h crypto: brcm - Add Broadcom SPU driver 2017-02-11 17:55:20 +08:00
util.c crypto: bcm - Delete an error message for a failed memory allocation in do_shash() 2018-02-22 22:16:59 +08:00
util.h crypto: brcm - Add Broadcom SPU driver 2017-02-11 17:55:20 +08:00