arm64: Use phys_addr_t type for physical address
authorMin-Hua Chen <orca.chen@gmail.com>
Thu, 2 Oct 2014 14:56:59 +0000 (15:56 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 2 Oct 2014 16:22:41 +0000 (17:22 +0100)
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>
arch/arm64/include/asm/io.h
arch/arm64/mm/mmap.c

index e0ecdcf6632dfd5a974501d06628c24ee9b03cd4..f771e8bcad4ab7d1dcea64629eb1844e20106b8b 100644 (file)
@@ -243,7 +243,7 @@ extern void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size);
  * (PHYS_OFFSET and PHYS_MASK taken into account).
  */
 #define ARCH_HAS_VALID_PHYS_ADDR_RANGE
-extern int valid_phys_addr_range(unsigned long addr, size_t size);
+extern int valid_phys_addr_range(phys_addr_t addr, size_t size);
 extern int valid_mmap_phys_addr_range(unsigned long pfn, size_t size);
 
 extern int devmem_is_allowed(unsigned long pfn);
index 8ed6cb1a900f2981b85dfefa00d72ac023b38177..1d73662f00ff60c68db5335bce754d8c8dad34de 100644 (file)
@@ -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;