]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/io-pgtable-arm: Avoid warning with 32-bit phys_addr_t
authorRobin Murphy <robin.murphy@arm.com>
Thu, 29 Mar 2018 11:24:52 +0000 (12:24 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 13:19:10 +0000 (15:19 +0200)
commit13c0b19f763c91ce4c2253d33346bbb76da98421
tree853ed7cdbd3ed4b9bcd2764d710c63ea7b92adc3
parentefce7ee4bc5badec66c8fb4f3f2f936555bea90a
iommu/io-pgtable-arm: Avoid warning with 32-bit phys_addr_t

It's not entirely unreasonable for io-pgtable-arm to be built for
configurations with 32-bit phys_addr_t, where the compiler rightly
raises a warning about the 36-bit shift. That particular code path
should never actually *run* on those systems, but we still want it
to compile cleanly, which is easily done by using an unambiguous u64
as the intermediate type instead.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/io-pgtable-arm.c