From db2d0c248e3517d1b57758b65acd8a49629c8d78 Mon Sep 17 00:00:00 2001 From: Kirill Korotaev Date: Fri, 30 Sep 2005 10:32:19 +0400 Subject: [PATCH] --- yaml --- r: 9498 b: refs/heads/master c: 1294b118cb53fb14515666e2b218ad5ab40318c1 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/asm-x86_64/pgtable.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index eac74e7d0b15..10af7758fd36 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 794fb8370db3d5f26592b9b45d69aeca2f583efb +refs/heads/master: 1294b118cb53fb14515666e2b218ad5ab40318c1 diff --git a/trunk/include/asm-x86_64/pgtable.h b/trunk/include/asm-x86_64/pgtable.h index 2cb483516459..dd8711ecaf2f 100644 --- a/trunk/include/asm-x86_64/pgtable.h +++ b/trunk/include/asm-x86_64/pgtable.h @@ -384,7 +384,7 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) } #define pte_index(address) \ - ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) + (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) #define pte_offset_kernel(dir, address) ((pte_t *) pmd_page_kernel(*(dir)) + \ pte_index(address))