]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: caam - fix warning in APPEND_MATH_IMM_u64
authorTudor Ambarus <tudor.ambarus@freescale.com>
Fri, 17 Jul 2015 13:54:54 +0000 (16:54 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 20 Jul 2015 07:53:43 +0000 (15:53 +0800)
commitc1f2cd21ed5335bfcf5dd1d3a05a2a83bae14c3a
tree675ce43dee3a02fe27dba1250c9a815fb9e0ef5c
parent62743a4145bb9c3fe090a48e10ddc0ebae85bfbf
crypto: caam - fix warning in APPEND_MATH_IMM_u64

An implicit truncation is done when using a variable of 64 bits
in MATH command:

warning: large integer implicitly truncated to unsigned type [-Woverflow]

Silence the compiler by feeding it with an explicit truncated value.

Signed-off-by: Tudor Ambarus <tudor.ambarus@freescale.com>
Signed-off-by: Horia Geant? <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/desc_constr.h