summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@freescale.com>2015-07-17 15:54:54 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-07-20 09:53:43 +0200
commitc1f2cd21ed5335bfcf5dd1d3a05a2a83bae14c3a (patch)
tree675ce43dee3a02fe27dba1250c9a815fb9e0ef5c /drivers/crypto
parentcrypto: caam - fix RNG init descriptor ret. code checking (diff)
downloadlinux-c1f2cd21ed5335bfcf5dd1d3a05a2a83bae14c3a.tar.xz
linux-c1f2cd21ed5335bfcf5dd1d3a05a2a83bae14c3a.zip
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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/desc_constr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/caam/desc_constr.h b/drivers/crypto/caam/desc_constr.h
index 9f79fd7bd4d7..98d07de24fc4 100644
--- a/drivers/crypto/caam/desc_constr.h
+++ b/drivers/crypto/caam/desc_constr.h
@@ -367,7 +367,7 @@ do { \
if (upper) \
append_u64(desc, data); \
else \
- append_u32(desc, data); \
+ append_u32(desc, lower_32_bits(data)); \
} while (0)
#define append_math_add_imm_u64(desc, dest, src0, src1, data) \