diff options
author | David S. Miller <davem@davemloft.net> | 2014-05-04 07:52:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-04 07:52:50 +0200 |
commit | 0eef331a3d0ee970dcbebd1bd5fcb57ca33ece01 (patch) | |
tree | 8db40eb8e8fc2aff33c6f673aebfcf848b268acf /arch/sparc/include | |
parent | sparc64: Fix range check in kern_addr_valid(). (diff) | |
download | linux-0eef331a3d0ee970dcbebd1bd5fcb57ca33ece01.tar.xz linux-0eef331a3d0ee970dcbebd1bd5fcb57ca33ece01.zip |
sparc64: Use 'ILOG2_4MB' instead of constant '22'.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/pgtable_64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/pgtable_64.h b/arch/sparc/include/asm/pgtable_64.h index ff97960b6242..0ad0a1285bd0 100644 --- a/arch/sparc/include/asm/pgtable_64.h +++ b/arch/sparc/include/asm/pgtable_64.h @@ -918,7 +918,7 @@ static inline bool kern_addr_valid(unsigned long addr) if ((paddr >> MAX_PHYS_ADDRESS_BITS) != 0UL) return false; - return test_bit(paddr >> 22, sparc64_valid_addr_bitmap); + return test_bit(paddr >> ILOG2_4MB, sparc64_valid_addr_bitmap); } extern int page_in_phys_avail(unsigned long paddr); |