diff options
author | Aymen Sghaier <aymen.sghaier@nxp.com> | 2018-05-01 18:42:21 +0200 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-05-23 04:15:45 -0700 |
commit | 79e90af14af32e86fd7efd3c84e09a0bd572ab5b (patch) | |
tree | 17654df9d449234977dd27bb421217105d4bfa29 /include/fsl_sec.h | |
parent | b0f889b77b367b69aa0778b1d03a2ec30fdee243 (diff) |
MLK-18044-2: crypto: caam: Fix build warnings pointer casting
Enabling CAAM driver for i.MX8M platforms, a 64 bits architecture,
lead to casting warnings: from/to pointer to/from integer with
different size. This patch fix these warnings
Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
(cherry picked from commit d02fbc7d2957f4788ced017ccf17fd35ab968121)
Diffstat (limited to 'include/fsl_sec.h')
-rw-r--r-- | include/fsl_sec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fsl_sec.h b/include/fsl_sec.h index 939dc05fee..d1a1f6b658 100644 --- a/include/fsl_sec.h +++ b/include/fsl_sec.h @@ -14,8 +14,8 @@ #include <asm/io.h> #ifdef CONFIG_SYS_FSL_SEC_LE -#define sec_in32(a) in_le32(a) -#define sec_out32(a, v) out_le32(a, v) +#define sec_in32(a) in_le32((ulong *)(ulong)a) +#define sec_out32(a, v) out_le32((ulong *)(ulong)a, v) #define sec_in16(a) in_le16(a) #define sec_clrbits32 clrbits_le32 #define sec_setbits32 setbits_le32 |