]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Add generic_file_readonly_mmap() for nommu
authorAndrew Morton <akpm@digeo.com>
Sat, 21 Dec 2002 09:07:17 +0000 (01:07 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 21 Dec 2002 09:07:17 +0000 (01:07 -0800)
Add a generic_file_readonly_mmap() for !CONFIG_MMU.

mm/filemap.c

index c771d48b9cdefb10e8c35bc73a918e8035ad24d3..35137c389b423dc39c8c5f6662d023e1d35cb807 100644 (file)
@@ -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,