shmem: remove unused shmem_get_unmapped_area
Subsystems (2)
PATCH 1/1 shmem: remove unused shmem_get_unmapped_area
Signed-off-by Matt Mackall <[email protected]>
include/linux/mm.h +0 -8
@@ -717,14 +717,6 @@int shmem_zero_setup (struct vm_area_struct *); -#ifndef CONFIG_MMU -extern unsigned long shmem_get_unmapped_area (struct file *file, -unsigned long addr, -unsigned long len, -unsigned long pgoff, -unsigned long flags); -#endif -extern int can_do_mlock (void );extern int user_shm_lock (size_t ,struct user_struct *);extern void user_shm_unlock (size_t ,struct user_struct *);
mm/tiny-shmem.c +0 -11
@@ -121,14 +121,3 @@ {return 0 ; } - -#ifndef CONFIG_MMU -unsigned long shmem_get_unmapped_area (struct file *file, -unsigned long addr, -unsigned long len, -unsigned long pgoff, -unsigned long flags) -{ -return ramfs_nommu_get_unmapped_area (file, addr, len, pgoff, flags); -} -#endif
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Quoted 1 line · Matt Mackall
Signed-off-by Matt Mackall <[email protected]>
Acked-by David Howells <[email protected]>
Quoted 1 line · Matt Mackall
Signed-off-by Matt Mackall <[email protected]>
Acked-by Hugh Dickins <[email protected]>
(Really, ramfs_nommu_get_unmapped_area() should be made static in fs/ramfs/file-nommu.c, and its extern removed from ramfs.h; but I notice it's used before it's declared, and my current record at messing up Andrew with build errors is not very good, so I'd rather leave that to someone who builds with NOMMU.)
Quoted 40 lines
diff -r
b4d73844205b-r8a9f1e9c46e8include/linux/mm.hinclude/linux/mm.h +0
-8@@ -717,14 +717,6 @@int shmem_zero_setup (struct vm_area_struct *); -#ifndef CONFIG_MMU -extern unsigned long shmem_get_unmapped_area (struct file *file, -unsigned long addr, -unsigned long len, -unsigned long pgoff, -unsigned long flags); -#endif -extern int can_do_mlock (void );extern int user_shm_lock (size_t ,struct user_struct *);extern void user_shm_unlock (size_t ,struct user_struct *);diff -r
b4d73844205b-r8a9f1e9c46e8mm/tiny-shmem.cmm/tiny-shmem.c +0
-11@@ -121,14 +121,3 @@ {return 0 ; } - -#ifndef CONFIG_MMU -unsigned long shmem_get_unmapped_area (struct file *file, -unsigned long addr, -unsigned long len, -unsigned long pgoff, -unsigned long flags) -{ -return ramfs_nommu_get_unmapped_area (file, addr, len, pgoff, flags); -} -#endif Signature · 2 lines
-- Mathematics is the supreme nostalgia of our time.