aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/shm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index a86a3a5c8a19..b8884c288ecc 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -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
236int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) 236static 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
246struct mempolicy *shm_get_policy(struct vm_area_struct *vma, unsigned long addr) 246static 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);