Commit 94ec0dc5 authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds

[PATCH] parentheses to x86-64 macro

Add parentheses to x86-64's pgd_index's arguments
Signed-off-by: default avatarNick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9f60019d
......@@ -311,7 +311,7 @@ static inline int pmd_large(pmd_t pte) {
/* PGD - Level3 access */
/* 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))
static inline pgd_t *__pgd_offset_k(pgd_t *pgd, unsigned long address)
{
return pgd + pgd_index(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