summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@freescale.com>2015-05-11 15:29:43 (GMT)
committerHonghua Yin <Hong-Hua.Yin@freescale.com>2015-05-19 01:57:57 (GMT)
commit14d6a9acd8e744191ec489d205c1b1f7515a0eec (patch)
tree36d1c6ae94ed352f190b198961f48ffd5645b436
parent11e21064d853b7f212a54abd1cd1442b12b0eeee (diff)
downloadlinux-fsl-qoriq-14d6a9acd8e744191ec489d205c1b1f7515a0eec.tar.xz
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. Change-Id: I95e3f397f62f9b850c0c7f26e7079b9d9688b87e Signed-off-by: Tudor Ambarus <tudor.ambarus@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/36218 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Horia Ioan Geanta Neag <horia.geanta@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
-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 112eb29..7d1990c70 100644
--- a/drivers/crypto/caam/desc_constr.h
+++ b/drivers/crypto/caam/desc_constr.h
@@ -369,7 +369,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) \