diff options
author | Min-Hua Chen <orca.chen@gmail.com> | 2014-10-02 18:56:59 +0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-10-02 20:22:41 +0400 |
commit | 097cbd8d261ccc602c963ddf823d5023be439e04 (patch) | |
tree | 7e8dee35e3d9ca15edea2148f21946f59341a4eb /arch/arm64/mm | |
parent | 6c34f1f5424395994c125f8c68bed395920ecc58 (diff) | |
download | linux-097cbd8d261ccc602c963ddf823d5023be439e04.tar.xz |
arm64: Use phys_addr_t type for physical address
Change the type of physical address from unsigned long to phys_addr_t,
make valid_phys_addr_range more readable.
Signed-off-by: Min-Hua Chen <orca.chen@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r-- | arch/arm64/mm/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/mmap.c b/arch/arm64/mm/mmap.c index 8ed6cb1a900f..1d73662f00ff 100644 --- a/arch/arm64/mm/mmap.c +++ b/arch/arm64/mm/mmap.c @@ -102,7 +102,7 @@ EXPORT_SYMBOL_GPL(arch_pick_mmap_layout); * You really shouldn't be using read() or write() on /dev/mem. This might go * away in the future. */ -int valid_phys_addr_range(unsigned long addr, size_t size) +int valid_phys_addr_range(phys_addr_t addr, size_t size) { if (addr < PHYS_OFFSET) return 0; |