projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
794fb83
)
[PATCH] x86_64: Add missing () around arguments of pte_index macro
author
Kirill Korotaev
<dev@sw.ru>
Fri, 30 Sep 2005 06:32:19 +0000
(10:32 +0400)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 30 Sep 2005 15:54:38 +0000
(08:54 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-x86_64/pgtable.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-x86_64/pgtable.h
b/include/asm-x86_64/pgtable.h
index 2cb483516459dd3efb48fa48269b66c3beb8d072..dd8711ecaf2ff71cf1bf0c6fd14d3ba690849465 100644
(file)
--- a/
include/asm-x86_64/pgtable.h
+++ b/
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))