static int ramfs_nommu_setattr(struct dentry *, struct iattr *);
-const struct address_space_operations ramfs_aops = {
+struct address_space_operations ramfs_aops = {
.readpage = simple_readpage,
.prepare_write = simple_prepare_write,
.commit_write = simple_commit_write
/*****************************************************************************/
/*
- * set up a mapping for shared memory segments
+ * set up a mapping
*/
int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma)
{
- return vma->vm_flags & VM_SHARED ? 0 : -ENOSYS;
+ return 0;
}