Commit 5906e417 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[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: default avatarJeff Dike <>
Cc: Paolo 'Blaisorblade' Giarrusso <>
Cc: Andi Kleen <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent fade5d54
......@@ -61,8 +61,10 @@ static int init_stub_pte(struct mm_struct *mm, unsigned long proc,
*pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT));
*pte = pte_mkexec(*pte);
*pte = pte_wrprotect(*pte);
/* This is wrong for the code page, but it doesn't matter since the
* stub is mapped by hand with the correct permissions.
*pte = pte_mkwrite(*pte);
......@@ -274,12 +274,6 @@ static inline pte_t pte_mkread(pte_t pte)
static inline pte_t pte_mkexec(pte_t pte)
pte_set_bits(pte, _PAGE_USER);
static inline pte_t pte_mkdirty(pte_t pte)
pte_set_bits(pte, _PAGE_DIRTY);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment