diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-11-16 03:16:01 +0300 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-11-26 23:45:46 +0300 |
commit | 97092e0c56830457af0639f6bd904537a150ea4a (patch) | |
tree | 5452905cff4e52465329a10de6ab8add2bd1de5a /arch/arm/include/asm/pgtable.h | |
parent | 6e4beb5e682953212da48ebb9e5c90408b8d38ae (diff) | |
download | linux-97092e0c56830457af0639f6bd904537a150ea4a.tar.xz |
ARM: pgtable: use phys_addr_t for physical addresses
Ensure that physical addresses are typed as phys_addr_t
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/pgtable.h')
-rw-r--r-- | arch/arm/include/asm/pgtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index d00ef7ecee64..30b3a07dd998 100644 --- a/arch/arm/include/asm/pgtable.h +++ b/arch/arm/include/asm/pgtable.h @@ -322,7 +322,7 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; static inline pte_t *pmd_page_vaddr(pmd_t pmd) { - unsigned long ptr; + phys_addr_t ptr; ptr = pmd_val(pmd) & ~(PTRS_PER_PTE * sizeof(void *) - 1); ptr += PTRS_PER_PTE * sizeof(void *); |