From: David Howells Provide a page_mkclean() implementation for NOMMU. This doesn't do anything except return successfully as there are no PTEs for it to play with. This is only relevant to the -mm kernels. Signed-off-by: David Howells Cc: Peter Zijlstra Signed-off-by: Andrew Morton --- include/linux/rmap.h | 6 ++++++ 1 files changed, 6 insertions(+) diff -puN include/linux/rmap.h~mm-tracking-shared-dirty-pages-nommu-fix-2 include/linux/rmap.h --- a/include/linux/rmap.h~mm-tracking-shared-dirty-pages-nommu-fix-2 +++ a/include/linux/rmap.h @@ -120,6 +120,12 @@ int page_mkclean(struct page *); #define page_referenced(page,l) TestClearPageReferenced(page) #define try_to_unmap(page, refs) SWAP_FAIL +static inline int page_mkclean(struct page *page) +{ + return 0; +} + + #endif /* CONFIG_MMU */ /* _