+ fs-ramfs-file-nommuc-make-ramfs_nommu_get_unmapped_area-and-ramfs_nommu_mmap-static.patch added to -mm tree
Subject: + fs-ramfs-file-nommuc-make-ramfs_nommu_get_unmapped_area-and-ramfs_nommu_mmap-static.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 20 Nov 2013 14:42:45 -0800
The patch titled
Subject: fs/ramfs/file-nommu.c: make ramfs_nommu_get_unmapped_area() and ramfs_nommu_mmap() static
has been added to the -mm tree. Its filename is
fs-ramfs-file-nommuc-make-ramfs_nommu_get_unmapped_area-and-ramfs_nommu_mmap-static.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/fs-ramfs-file-nommuc-make-ramfs_nommu_get_unmapped_area-and-ramfs_nommu_mmap-static.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/fs-ramfs-file-nommuc-make-ramfs_nommu_get_unmapped_area-and-ramfs_nommu_mmap-static.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Axel Lin <[email protected]>
Subject: fs/ramfs/file-nommu.c: make ramfs_nommu_get_unmapped_area() and ramfs_nommu_mmap() static
Since commit 853ac43ab194f "shmem: unify regular and tiny shmem", ramfs_nommu_get_unmapped_area() and ramfs_nommu_mmap() are not directly referenced outside of file-nommu.c. Thus make them static.
---
fs/ramfs/file-nommu.c | 10 ++++++++-- include/linux/ramfs.h | 7 ------- 2 files changed, 8 insertions(+), 9 deletions(-)
fs/ramfs/file-nommu.c renamed from fs/ramfs/file-nommu.c~fs-ramfs-file-nommuc-make-ramfs_nommu_get_unmapped_area-and-ramfs_nommu_mmap-static +8 -2
@@ -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 de* - 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 ;
include/linux/ramfs.h renamed from include/linux/ramfs.h~fs-ramfs-file-nommuc-make-ramfs_nommu_get_unmapped_area-and-ramfs_nommu_mmap-static +0 -5
@@ -14,13 +14,6 @@ ramfs_nommu_expand_for_mapping(struct in }#else extern int ramfs_nommu_expand_for_mapping (struct inode *inode,size_t newsize); -extern unsigned long ramfs_nommu_get_unmapped_area (struct file *file, -unsigned long addr, -unsigned long len, -unsigned long pgoff, -unsigned long flags);