mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
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>