Commit 503c99ef authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Add generic_file_readonly_mmap() for nommu

Add a generic_file_readonly_mmap() for !CONFIG_MMU.
parent 4f781c84
......@@ -1306,6 +1306,10 @@ int generic_file_mmap(struct file * file, struct vm_area_struct * vma)
{
return -ENOSYS;
}
int generic_file_readonly_mmap(struct file * file, struct vm_area_struct * vma)
{
return -ENOSYS;
}
#endif /* CONFIG_MMU */
static inline struct page *__read_cache_page(struct address_space *mapping,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment