aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/pgtable.h')
-rw-r--r--include/asm-generic/pgtable.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h
index a3b28710d56c..1f4ec7b70270 100644
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
@@ -140,17 +140,15 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addres
140#endif 140#endif
141 141
142/* 142/*
143 * When walking page tables, get the address of the next boundary, or 143 * When walking page tables, get the address of the next boundary,
144 * the end address of the range if that comes earlier. Although end might 144 * or the end address of the range if that comes earlier. Although no
145 * wrap to 0 only in clear_page_range, __boundary may wrap to 0 throughout. 145 * vma end wraps to 0, rounded up __boundary may wrap to 0 throughout.
146 */ 146 */
147 147
148#ifndef pgd_addr_end
149#define pgd_addr_end(addr, end) \ 148#define pgd_addr_end(addr, end) \
150({ unsigned long __boundary = ((addr) + PGDIR_SIZE) & PGDIR_MASK; \ 149({ unsigned long __boundary = ((addr) + PGDIR_SIZE) & PGDIR_MASK; \
151 (__boundary - 1 < (end) - 1)? __boundary: (end); \ 150 (__boundary - 1 < (end) - 1)? __boundary: (end); \
152}) 151})
153#endif
154 152
155#ifndef pud_addr_end 153#ifndef pud_addr_end
156#define pud_addr_end(addr, end) \ 154#define pud_addr_end(addr, end) \