mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
mm/shmem.c: make 3 functions static
This patch makes three needlessly global functions static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Cc: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
af767cbdd7
commit
d8dc74f212
2 changed files with 5 additions and 20 deletions
|
|
@ -648,9 +648,6 @@ static inline int page_mapped(struct page *page)
|
|||
extern void show_free_areas(void);
|
||||
|
||||
#ifdef CONFIG_SHMEM
|
||||
int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *new);
|
||||
struct mempolicy *shmem_get_policy(struct vm_area_struct *vma,
|
||||
unsigned long addr);
|
||||
int shmem_lock(struct file *file, int lock, struct user_struct *user);
|
||||
#else
|
||||
static inline int shmem_lock(struct file *file, int lock,
|
||||
|
|
@ -658,18 +655,6 @@ static inline int shmem_lock(struct file *file, int lock,
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int shmem_set_policy(struct vm_area_struct *vma,
|
||||
struct mempolicy *new)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline struct mempolicy *shmem_get_policy(struct vm_area_struct *vma,
|
||||
unsigned long addr)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue