diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-10-17 02:26:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:50 -0400 |
commit | d823e3e7541c39b4dfe9c79dbf052b4c39da2965 (patch) | |
tree | 250b90bf38f2d830d80f6d7ca99d548eaeb3f30d /ipc/shm.c | |
parent | 53fa6645251727856d3554d64583fef59e6f1651 (diff) |
ipc/shm.c: make 2 functions static
This patch makes two needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -233,7 +233,7 @@ static int shm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
233 | } | 233 | } |
234 | 234 | ||
235 | #ifdef CONFIG_NUMA | 235 | #ifdef CONFIG_NUMA |
236 | int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) | 236 | static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) |
237 | { | 237 | { |
238 | struct file *file = vma->vm_file; | 238 | struct file *file = vma->vm_file; |
239 | struct shm_file_data *sfd = shm_file_data(file); | 239 | struct shm_file_data *sfd = shm_file_data(file); |
@@ -243,7 +243,8 @@ int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) | |||
243 | return err; | 243 | return err; |
244 | } | 244 | } |
245 | 245 | ||
246 | struct mempolicy *shm_get_policy(struct vm_area_struct *vma, unsigned long addr) | 246 | static struct mempolicy *shm_get_policy(struct vm_area_struct *vma, |
247 | unsigned long addr) | ||
247 | { | 248 | { |
248 | struct file *file = vma->vm_file; | 249 | struct file *file = vma->vm_file; |
249 | struct shm_file_data *sfd = shm_file_data(file); | 250 | struct shm_file_data *sfd = shm_file_data(file); |