[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>
Этот коммит содержится в:
Jeff Dike
2006-09-29 01:58:54 -07:00
коммит произвёл Linus Torvalds
родитель fade5d5461
Коммит 5906e4171a
2 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

@@ -61,8 +61,10 @@ static int init_stub_pte(struct mm_struct *mm, unsigned long proc,
#endif
*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);
return(0);
out_pmd: