diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-01-11 17:15:58 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-02-08 15:47:28 +0000 |
commit | 2841029393fad551b49b6de34d44bfa9ef256441 (patch) | |
tree | 8e4d1040e2a6cba7a1a09729abad19fe7c0a50c8 /arch/arm/mm/proc-xscale.S | |
parent | 9023cc8268c6ba358417d31112ed96e1feb73e56 (diff) |
ARM: make virt_to_idmap() return unsigned long
Make virt_to_idmap() return an unsigned long rather than phys_addr_t.
Returning phys_addr_t here makes no sense, because the definition of
virt_to_idmap() is that it shall return a physical address which maps
identically with the virtual address. Since virtual addresses are
limited to 32-bit, identity mapped physical addresses are as well.
Almost all users already had an implicit narrowing cast to unsigned long
so let's make this official and part of this interface.
Tested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/proc-xscale.S')
0 files changed, 0 insertions, 0 deletions