Skip to contentSkip to conversation

ipc/shm.c: make 2 functions static

PATCH New Adrian Bunk 1 participant 1 message Jul 29, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipc/shm.c: make 2 functions static

This patch makes two needlessly global functions static.

---

This patch has been sent on:
- 6 Jul 2007

 ipc/shm.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
ipc/shm.c renamed from ipc/shm.c.old +3 -2
@@ -234,7 +234,7 @@
 }
 
 #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);
@@ -244,7 +244,8 @@
 	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);