ARM: make virt_to_idmap() return unsigned long
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 11 Jan 2016 17:15:58 +0000 (17:15 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 8 Feb 2016 15:47:28 +0000 (15:47 +0000)
commit2841029393fad551b49b6de34d44bfa9ef256441
tree8e4d1040e2a6cba7a1a09729abad19fe7c0a50c8
parent9023cc8268c6ba358417d31112ed96e1feb73e56
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>
arch/arm/include/asm/memory.h
arch/arm/kernel/reboot.c
arch/arm/mach-keystone/keystone.c
arch/arm/mm/idmap.c
This page took 0.026392 seconds and 5 git commands to generate.