diff options
Diffstat (limited to 'fs/ramfs/file-nommu.c')
-rw-r--r-- | fs/ramfs/file-nommu.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c index 8d5b438cc188..0b3d8e4cb2fa 100644 --- a/fs/ramfs/file-nommu.c +++ b/fs/ramfs/file-nommu.c | |||
@@ -27,13 +27,12 @@ | |||
27 | #include "internal.h" | 27 | #include "internal.h" |
28 | 28 | ||
29 | static int ramfs_nommu_setattr(struct dentry *, struct iattr *); | 29 | static int ramfs_nommu_setattr(struct dentry *, struct iattr *); |
30 | 30 | static unsigned long ramfs_nommu_get_unmapped_area(struct file *file, | |
31 | const struct address_space_operations ramfs_aops = { | 31 | unsigned long addr, |
32 | .readpage = simple_readpage, | 32 | unsigned long len, |
33 | .write_begin = simple_write_begin, | 33 | unsigned long pgoff, |
34 | .write_end = simple_write_end, | 34 | unsigned long flags); |
35 | .set_page_dirty = __set_page_dirty_no_writeback, | 35 | static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma); |
36 | }; | ||
37 | 36 | ||
38 | const struct file_operations ramfs_file_operations = { | 37 | const struct file_operations ramfs_file_operations = { |
39 | .mmap = ramfs_nommu_mmap, | 38 | .mmap = ramfs_nommu_mmap, |
@@ -197,7 +196,7 @@ static int ramfs_nommu_setattr(struct dentry *dentry, struct iattr *ia) | |||
197 | * - the pages to be mapped must exist | 196 | * - the pages to be mapped must exist |
198 | * - the pages be physically contiguous in sequence | 197 | * - the pages be physically contiguous in sequence |
199 | */ | 198 | */ |
200 | unsigned long ramfs_nommu_get_unmapped_area(struct file *file, | 199 | static unsigned long ramfs_nommu_get_unmapped_area(struct file *file, |
201 | unsigned long addr, unsigned long len, | 200 | unsigned long addr, unsigned long len, |
202 | unsigned long pgoff, unsigned long flags) | 201 | unsigned long pgoff, unsigned long flags) |
203 | { | 202 | { |
@@ -256,7 +255,7 @@ out: | |||
256 | /* | 255 | /* |
257 | * set up a mapping for shared memory segments | 256 | * set up a mapping for shared memory segments |
258 | */ | 257 | */ |
259 | int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma) | 258 | static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma) |
260 | { | 259 | { |
261 | if (!(vma->vm_flags & VM_SHARED)) | 260 | if (!(vma->vm_flags & VM_SHARED)) |
262 | return -ENOSYS; | 261 | return -ENOSYS; |