mm.h: Fix noMMU breakage
Subsystems (2)
Hi,
all noMMU systems are broken that's why I would like to add this patch (or any similar/better) to mainline ASAP. For more information please look at patch description.
Can you give me some ACKs?
Who is responsible for this mm patch? Andrew?
Thanks,
Michal
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
PATCH 1/1 mm: System without MMU do not need pte_mkwrite
The patch "thp: export maybe_mkwrite"
(sha1 14fd403f2146f740942d78af4e0ee59396ad8eab)
break 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
--- include/linux/mm.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/mm.h +2 -0
@@ -470,6 +470,7 @@ static inline void set_compound_order(struct page *page, unsigned long order) page[1 ].lru.prev = (void *)order; } +#ifdef CONFIG_MMU /* * Do pte_mkwrite, but only if the vma says VM_WRITE. We do this when * 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) pte =pte_mkwrite (pte); return pte; } +#endif /* * Multiple processes may "see" the same page. E.g. for untouched
Signature · 8 lines
1.5.5.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Re: [PATCH] mm: System without MMU do not need pte_mkwrite
Quoted 12 lines · Michal Simek
The patch "thp: export
maybe_mkwrite"
(sha114fd403f2146f740942d78af4e0ee59396ad8eab)
break systems without MMU.Error log:
CCarch/microblaze/mm/init.o
In file included frominclude/linux/mman.h:14,
fromarch/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
Quoted 6 lines
Signed-off-by Michal Simek<[email protected]>CC Andrea Arcangeli<[email protected]>CC Linus Torvalds<[email protected]>CC Andrew Morton<[email protected]>CC Rik van Riel<[email protected]>CC Ingo Molnar<[email protected]>
Signature · 8 lines
All rights reversed -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>