summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/dma-iommu.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-12-22 20:01:06 +0100
committerJoerg Roedel <jroedel@suse.de>2015-12-28 17:10:52 +0100
commitf64232eee61906f22942224af2a9fd40e26e592e (patch)
tree0f5da57be15a71661d49e855af41ce2deb5f3b9c /drivers/iommu/dma-iommu.c
parentiommu/dma: Avoid unlikely high-order allocations (diff)
downloadlinux-f64232eee61906f22942224af2a9fd40e26e592e.tar.xz
linux-f64232eee61906f22942224af2a9fd40e26e592e.zip
iommu/ipmmu-vmsa: Don't truncate ttbr if LPAE is not enabled
If CONFIG_PHYS_ADDR_T_64BIT=n: drivers/iommu/ipmmu-vmsa.c: In function 'ipmmu_domain_init_context': drivers/iommu/ipmmu-vmsa.c:434:2: warning: right shift count >= width of type ipmmu_ctx_write(domain, IMTTUBR0, ttbr >> 32); ^ As io_pgtable_cfg.arm_lpae_s1_cfg.ttbr[] is an array of u64s, assigning it to a phys_addr_t may truncates it. Make ttbr u64 to fix this. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions