projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge master.kernel.org:/home/rmk/linux-2.6-serial
[powerpc.git]
/
include
/
asm-x86_64
/
pgtable.h
diff --git
a/include/asm-x86_64/pgtable.h
b/include/asm-x86_64/pgtable.h
index
2cb4835
..
7a07196
100644
(file)
--- a/
include/asm-x86_64/pgtable.h
+++ b/
include/asm-x86_64/pgtable.h
@@
-318,8
+318,6
@@
static inline int pmd_large(pmd_t pte) {
* and a page entry and page directory to the page they refer to.
*/
* and a page entry and page directory to the page they refer to.
*/
-#define page_pte(page) page_pte_prot(page, __pgprot(0))
-
/*
* Level 4 access.
*/
/*
* Level 4 access.
*/
@@
-384,7
+382,7
@@
static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
}
#define pte_index(address) \
}
#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))
#define pte_offset_kernel(dir, address) ((pte_t *) pmd_page_kernel(*(dir)) + \
pte_index(address))