* [PATCH] [x86_64] Add missing () around arguments of pte_index macro
@ 2005-09-30 6:32 Kirill Korotaev
0 siblings, 0 replies; only message in thread
From: Kirill Korotaev @ 2005-09-30 6:32 UTC (permalink / raw)
To: Linus Torvalds, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 166 bytes --]
x86-64: Add missing () around arguments of pte_index macro
Signed-Off-By: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-Off-By: Kirill Korotaev <dev@sw.ru>
Kirill
[-- Attachment #2: diff-x86_64-3 --]
[-- Type: text/plain, Size: 489 bytes --]
c45adb520392fc82ffd647c8c9ba57bbf89c7ca2
diff --git a/include/asm-x86_64/pgtable.h b/include/asm-x86_64/pgtable.h
--- a/include/asm-x86_64/pgtable.h
+++ b/include/asm-x86_64/pgtable.h
@@ -384,7 +384,7 @@ extern inline pte_t pte_modify(pte_t pte
}
#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))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-30 6:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-30 6:32 [PATCH] [x86_64] Add missing () around arguments of pte_index macro Kirill Korotaev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.