The patch titled Subject: mm/filemap.c: provide dummy filemap_page_mkwrite() for NOMMU has been added to the -mm tree. Its filename is mm-filemap-provide-dummy-filemap_page_mkwrite-for-nommu.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-filemap-provide-dummy-filemap_page_mkwrite-for-nommu.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-filemap-provide-dummy-filemap_page_mkwrite-for-nommu.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Arnd Bergmann <arnd@xxxxxxxx> Subject: mm/filemap.c: provide dummy filemap_page_mkwrite() for NOMMU Building orangefs on MMU-less machines now results in a link error because of the newly introduced use of the filemap_page_mkwrite() function: ERROR: "filemap_page_mkwrite" [fs/orangefs/orangefs.ko] undefined! This adds a dummy version for it, similar to the existing generic_file_mmap and generic_file_readonly_mmap stubs in the same file, to avoid the link error without adding #ifdefs in each file system that uses these. Link: http://lkml.kernel.org/r/20180409105555.2439976-1-arnd@xxxxxxxx Fixes: a5135eeab2e5 ("orangefs: implement vm_ops->fault") Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> Reviewed-by: Jan Kara <jack@xxxxxxx> Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Martin Brandenburg <martin@xxxxxxxxxxxx> Cc: Mike Marshall <hubcap@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- diff -puN mm/filemap.c~mm-filemap-provide-dummy-filemap_page_mkwrite-for-nommu mm/filemap.c --- a/mm/filemap.c~mm-filemap-provide-dummy-filemap_page_mkwrite-for-nommu +++ a/mm/filemap.c @@ -2721,7 +2721,6 @@ out: sb_end_pagefault(inode->i_sb); return ret; } -EXPORT_SYMBOL(filemap_page_mkwrite); const struct vm_operations_struct generic_file_vm_ops = { .fault = filemap_fault, @@ -2752,6 +2751,10 @@ int generic_file_readonly_mmap(struct fi return generic_file_mmap(file, vma); } #else +int filemap_page_mkwrite(struct vm_fault *vmf) +{ + return -ENOSYS; +} int generic_file_mmap(struct file * file, struct vm_area_struct * vma) { return -ENOSYS; @@ -2762,6 +2765,7 @@ int generic_file_readonly_mmap(struct fi } #endif /* CONFIG_MMU */ +EXPORT_SYMBOL(filemap_page_mkwrite); EXPORT_SYMBOL(generic_file_mmap); EXPORT_SYMBOL(generic_file_readonly_mmap); _ Patches currently in -mm which might be from arnd@xxxxxxxx are mm-filemap-provide-dummy-filemap_page_mkwrite-for-nommu.patch mm-hmm-fix-header-file-if-else-endif-maze-again.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html