From: Adrian Bunk This patch makes two needlessly global functions static. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- ipc/shm.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -puN ipc/shm.c~ipc-shmc-make-2-functions-static ipc/shm.c --- a/ipc/shm.c~ipc-shmc-make-2-functions-static +++ a/ipc/shm.c @@ -233,7 +233,7 @@ static int shm_fault(struct vm_area_stru } #ifdef CONFIG_NUMA -int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) +static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) { struct file *file = vma->vm_file; struct shm_file_data *sfd = shm_file_data(file); @@ -243,7 +243,8 @@ int shm_set_policy(struct vm_area_struct return err; } -struct mempolicy *shm_get_policy(struct vm_area_struct *vma, unsigned long addr) +static struct mempolicy *shm_get_policy(struct vm_area_struct *vma, + unsigned long addr) { struct file *file = vma->vm_file; struct shm_file_data *sfd = shm_file_data(file); _