summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/cmd_dek.c
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2022-10-11 12:19:45 +0800
committerYe Li <ye.li@nxp.com>2022-10-11 16:05:07 +0800
commitaaead5a2b8dace60b5a511453269be2853522a48 (patch)
tree264692a238c29e57c8a4704050b157321d585a1d /arch/arm/mach-imx/cmd_dek.c
parent933a3b25fe32be454a79f58376e3b54ef8ffb96b (diff)
LFU-416 imx: cmd_dek: Fix build warning in blob_encap_dek
Fix below build warning introduced by commit bf07f51 (LFOPTEE-177 imx: cmd_dek: add ELE DEK Blob generation support) In file included from ./arch/arm/include/asm/io.h:341, from include/fsl_sec.h:13, from arch/arm/mach-imx/cmd_dek.c:16: include/cpu_func.h:68:39: note: expected ‘long unsigned int’ but argument is of type ‘u8 *’ {aka ‘unsigned char *’} 68 | void flush_dcache_range(unsigned long start, unsigned long stop); Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx/cmd_dek.c')
-rw-r--r--arch/arm/mach-imx/cmd_dek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/cmd_dek.c b/arch/arm/mach-imx/cmd_dek.c
index 5ff8a4e55d..9e69f2c505 100644
--- a/arch/arm/mach-imx/cmd_dek.c
+++ b/arch/arm/mach-imx/cmd_dek.c
@@ -353,7 +353,7 @@ static int blob_encap_dek(u32 src_addr, u32 dst_addr, u32 len)
/* Flush the cache */
flush_dcache_range(src_addr, src_addr + in_size);
- flush_dcache_range(dst_ptr, (ulong)(dst_ptr +
+ flush_dcache_range((ulong)dst_ptr, (ulong)(dst_ptr +
roundup(out_size, ARCH_DMA_MINALIGN)));
/* Call ELE */