Commit a976c1c9 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] sparc64 pmd_offset() fix

mm/memory.c: In function `zeromap_pud_range':
mm/memory.c:1053: warning: suggest parentheses around + or - inside shift
mm/memory.c: In function `remap_pud_range':
mm/memory.c:1170: warning: suggest parentheses around + or - inside shift

Parenthesize this macro arg.

Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5f88bea1
......@@ -315,7 +315,7 @@ static inline pte_t pte_modify(pte_t orig_pte, pgprot_t new_prot)
/* Find an entry in the second-level page table.. */
#define pmd_offset(dir, address) \
((pmd_t *) pgd_page(*(dir)) + \
((address >> PMD_SHIFT) & (REAL_PTRS_PER_PMD-1)))
(((address) >> PMD_SHIFT) & (REAL_PTRS_PER_PMD-1)))
/* Find an entry in the third-level page table.. */
#define pte_index(dir, address) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment