summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-02-29 11:45:59 +0300
committerJoerg Roedel <jroedel@suse.de>2016-02-29 18:44:24 +0300
commitdbf6c6efa7dd9bea4db038ad7351b75615249046 (patch)
tree89a729ea43bf4aa50f77c3b2deb21b15dad69967 /scripts/gdb/linux/utils.py
parent5fa61cbff16224ef8595102552ca49b2c6775ab4 (diff)
downloadlinux-dbf6c6efa7dd9bea4db038ad7351b75615249046.tar.xz
iommu/exynos: Pointers are nto physical addresses
The exynos iommu driver changed an incorrect cast from pointer to 'unsigned int' to an equally incorrect cast to a 'phys_addr_t', which results in an obvious compile-time error when phys_addr_t is wider than pointers are: drivers/iommu/exynos-iommu.c: In function 'alloc_lv2entry': drivers/iommu/exynos-iommu.c:918:32: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] The code does not actually want the physical address (which would involve using virt_to_phys()), but just checks the alignment, so we can change it to use a cast to uintptr_t instead. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 740a01eee9ad ("iommu/exynos: Add support for v5 SYSMMU") Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions