|
@@ -27,6 +27,12 @@
|
|
|
#include "internal.h"
|
|
|
|
|
|
static int ramfs_nommu_setattr(struct dentry *, struct iattr *);
|
|
|
+static unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
|
|
|
+ unsigned long addr,
|
|
|
+ unsigned long len,
|
|
|
+ unsigned long pgoff,
|
|
|
+ unsigned long flags);
|
|
|
+static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma);
|
|
|
|
|
|
const struct address_space_operations ramfs_aops = {
|
|
|
.readpage = simple_readpage,
|
|
@@ -197,7 +203,7 @@ static int ramfs_nommu_setattr(struct dentry *dentry, struct iattr *ia)
|
|
|
* - the pages to be mapped must exist
|
|
|
* - the pages be physically contiguous in sequence
|
|
|
*/
|
|
|
-unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
|
|
|
+static unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
|
|
|
unsigned long addr, unsigned long len,
|
|
|
unsigned long pgoff, unsigned long flags)
|
|
|
{
|
|
@@ -256,7 +262,7 @@ out:
|
|
|
/*
|
|
|
* set up a mapping for shared memory segments
|
|
|
*/
|
|
|
-int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma)
|
|
|
+static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma)
|
|
|
{
|
|
|
if (!(vma->vm_flags & VM_SHARED))
|
|
|
return -ENOSYS;
|