diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-09-29 04:58:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 12:18:04 -0400 |
commit | 5906e4171ad61ce68de95e51b773146707671f80 (patch) | |
tree | e8e2479c9fa361948d10740b7e65e4eb751ee8c0 | |
parent | fade5d5461b0379b27ca96faf560d855d7a0ea8b (diff) |
[PATCH] uml: remove pte_mkexec
Andi is making pte_mkexec go away, and UML had one of the last uses.
This removes the use and the definition.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/um/kernel/skas/mmu.c | 6 | ||||
-rw-r--r-- | include/asm-um/pgtable.h | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c index 79c22707a637..4cd2ff546ef6 100644 --- a/arch/um/kernel/skas/mmu.c +++ b/arch/um/kernel/skas/mmu.c | |||
@@ -61,8 +61,10 @@ static int init_stub_pte(struct mm_struct *mm, unsigned long proc, | |||
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | *pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT)); | 63 | *pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT)); |
64 | *pte = pte_mkexec(*pte); | 64 | /* This is wrong for the code page, but it doesn't matter since the |
65 | *pte = pte_wrprotect(*pte); | 65 | * stub is mapped by hand with the correct permissions. |
66 | */ | ||
67 | *pte = pte_mkwrite(*pte); | ||
66 | return(0); | 68 | return(0); |
67 | 69 | ||
68 | out_pmd: | 70 | out_pmd: |
diff --git a/include/asm-um/pgtable.h b/include/asm-um/pgtable.h index 4862daf8b906..188f72621776 100644 --- a/include/asm-um/pgtable.h +++ b/include/asm-um/pgtable.h | |||
@@ -274,12 +274,6 @@ static inline pte_t pte_mkread(pte_t pte) | |||
274 | return(pte_mknewprot(pte)); | 274 | return(pte_mknewprot(pte)); |
275 | } | 275 | } |
276 | 276 | ||
277 | static inline pte_t pte_mkexec(pte_t pte) | ||
278 | { | ||
279 | pte_set_bits(pte, _PAGE_USER); | ||
280 | return(pte_mknewprot(pte)); | ||
281 | } | ||
282 | |||
283 | static inline pte_t pte_mkdirty(pte_t pte) | 277 | static inline pte_t pte_mkdirty(pte_t pte) |
284 | { | 278 | { |
285 | pte_set_bits(pte, _PAGE_DIRTY); | 279 | pte_set_bits(pte, _PAGE_DIRTY); |