summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-02-01 16:28:36 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-02-01 16:28:36 -0800
commitac108f996bd7cc11b20b455b75e3b39fbbbcdb9d (patch)
treef489a83b670f877d814a9ef0f8f34e2c530b3f0f /include
parent9c6325dc3ac873cc03b8a2a0c1cbe855dba4d09e (diff)
[PATCH] alpha: pgd_index() warning fix
mm/memory.c: In function `clear_page_range': mm/memory.c:185: warning: suggest parentheses around + or - inside shift Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-alpha/pgtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-alpha/pgtable.h b/include/asm-alpha/pgtable.h
index 4fb083444b55..846b09b0f96c 100644
--- a/include/asm-alpha/pgtable.h
+++ b/include/asm-alpha/pgtable.h
@@ -275,7 +275,7 @@ extern inline pte_t pte_mkyoung(pte_t pte) { pte_val(pte) |= __ACCESS_BITS; retu
#define pgd_offset_k(address) pgd_offset(&init_mm, address)
/* to find an entry in a page-table-directory. */
-#define pgd_index(address) ((address >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1))
+#define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
#define pgd_offset(mm, address) ((mm)->pgd+pgd_index(address))
/* Find an entry in the second-level page table.. */