-
由 Arnd Bergmann 提交于
ARM allmodconfig gained a new warning when dma_addr_t is 32-bit wide: drivers/iommu/arm-smmu.c: In function 'arm_smmu_iova_to_phys_hard': drivers/iommu/arm-smmu.c:1255:3: warning: right shift count >= width of type This changes the calculation so that the effective type is always 64-bit. Signed-off-by: NArnd Bergmann <arnd@arndb.de> Fixes: 859a732e ("iommu/arm-smmu: add support for iova_to_phys through ATS1PR") Acked-by: NWill Deacon <will.deacon@arm.com> Signed-off-by: NJoerg Roedel <jroedel@suse.de>
a4188bee