diff options
| author | Nick Piggin <nickpiggin@yahoo.com.au> | 2004-12-31 21:59:48 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@evo.osdl.org> | 2004-12-31 21:59:48 -0800 |
| commit | 94ec0dc5df6f3a8b1a3ca1ef84170d57f7c1e045 (patch) | |
| tree | a637e96d4fd3cab22a830728709d7e7e2cb3b122 /include | |
| parent | 9f60019d83ffbb31162c42eaefc94e50d4e1d731 (diff) | |
[PATCH] parentheses to x86-64 macro
Add parentheses to x86-64's pgd_index's arguments
Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-x86_64/pgtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86_64/pgtable.h b/include/asm-x86_64/pgtable.h index cd56bb9fe4f4..f6d8d62f09b3 100644 --- a/include/asm-x86_64/pgtable.h +++ b/include/asm-x86_64/pgtable.h @@ -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); |
