diff options
author | Michal Simek <monstr@monstr.eu> | 2011-01-21 02:49:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-21 11:40:30 -0500 |
commit | 3dece370ecc7c6152b3fdd21c6de28179f6e643d (patch) | |
tree | e63f721412c1ef469108ae7e688cebcf39d83cad /include/linux | |
parent | db9fd8486bfe895b00b3603685c086a3c8210ffe (diff) |
mm: System without MMU do not need pte_mkwrite
The patch "thp: export maybe_mkwrite" (commit 14fd403f2146) breaks
systems without MMU.
Error log:
CC arch/microblaze/mm/init.o
In file included from include/linux/mman.h:14,
from arch/microblaze/mm/consistent.c:24:
include/linux/mm.h: In function 'maybe_mkwrite':
include/linux/mm.h:482: error: implicit declaration of function 'pte_mkwrite'
include/linux/mm.h:482: error: incompatible types in assignment
Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 956a35532f47..f6385fc17ad4 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -470,6 +470,7 @@ static inline void set_compound_order(struct page *page, unsigned long order) | |||
470 | page[1].lru.prev = (void *)order; | 470 | page[1].lru.prev = (void *)order; |
471 | } | 471 | } |
472 | 472 | ||
473 | #ifdef CONFIG_MMU | ||
473 | /* | 474 | /* |
474 | * Do pte_mkwrite, but only if the vma says VM_WRITE. We do this when | 475 | * Do pte_mkwrite, but only if the vma says VM_WRITE. We do this when |
475 | * servicing faults for write access. In the normal case, do always want | 476 | * servicing faults for write access. In the normal case, do always want |
@@ -482,6 +483,7 @@ static inline pte_t maybe_mkwrite(pte_t pte, struct vm_area_struct *vma) | |||
482 | pte = pte_mkwrite(pte); | 483 | pte = pte_mkwrite(pte); |
483 | return pte; | 484 | return pte; |
484 | } | 485 | } |
486 | #endif | ||
485 | 487 | ||
486 | /* | 488 | /* |
487 | * Multiple processes may "see" the same page. E.g. for untouched | 489 | * Multiple processes may "see" the same page. E.g. for untouched |