OP-TEE: fix warning when LPAE is activated on ARM
authorZhang Zhijie <zhangzj@rock-chips.com>
Fri, 2 Jun 2017 06:02:11 +0000 (14:02 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 5 Jun 2017 06:29:35 +0000 (14:29 +0800)
commitb7b50eb62f6c002fce0d96fe44499107f5090ff8
tree3671435aac54e33368fb8bb87c8016a58df78794
parent00691037a5c07cac5a1dd63f6ba071f28c81c012
OP-TEE: fix warning when LPAE is activated on ARM

When LPAE is activated, the dma_addr_t type is u64,
but pointer is still 32bit on arm32 platform.
1. %pad is used to print dma_addr_t type in log.
2. The member paddr(dma_addr_t type) in struct shm is cast
to unsigned long when it needs to be cast to a pointer. The cast
is fine as the value of paddr in struct shm is always less than 4G.

Change-Id: I1e2112796f657759dfa845258ea19558cb84c4ec
Signed-off-by: Zhang Zhijie <zhangzj@rock-chips.com>
security/optee_linuxdriver/armtz/tee_tz_drv.c
security/optee_linuxdriver/core/tee_session.c
security/optee_linuxdriver/core/tee_shm.c
security/optee_linuxdriver/core/tee_supp_com.c