]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
make expand_files() and alloc_fd() static
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 22 Aug 2012 00:11:34 +0000 (20:11 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:09:58 +0000 (21:09 -0400)
no callers outside of fs/file.c left

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/file.c
include/linux/fdtable.h
include/linux/file.h

index 40ddef9fe041b529d99c5901337a1b7f4c585201..967bd0dadbe57281df679265274b732b79fb60b8 100644 (file)
--- a/fs/file.c
+++ b/fs/file.c
@@ -238,7 +238,7 @@ static int expand_fdtable(struct files_struct *files, int nr)
  * expanded and execution may have blocked.
  * The files->file_lock should be held on entry, and will be held on exit.
  */
-int expand_files(struct files_struct *files, int nr)
+static int expand_files(struct files_struct *files, int nr)
 {
        struct fdtable *fdt;
 
@@ -580,7 +580,7 @@ out:
        return error;
 }
 
-int alloc_fd(unsigned start, unsigned flags)
+static int alloc_fd(unsigned start, unsigned flags)
 {
        return __alloc_fd(current->files, start, rlimit(RLIMIT_NOFILE), flags);
 }
index 9ff26319d44f0d316612663cbcf6911ce73df9fe..de2b71caa0f00769c4ae2f9e081f28f9c2c86a6c 100644 (file)
@@ -73,7 +73,6 @@ struct file_operations;
 struct vfsmount;
 struct dentry;
 
-extern int expand_files(struct files_struct *, int nr);
 extern void __init files_defer_init(void);
 
 static inline struct file * fcheck_files(struct files_struct *files, unsigned int fd)
index 6239591a6122ba871048515cd2bb53bdfff1f3ba..6eee54aea2794c3da1af2ae7735228ba7050920f 100644 (file)
@@ -35,7 +35,6 @@ extern int replace_fd(unsigned fd, struct file *file, unsigned flags);
 extern void set_close_on_exec(unsigned int fd, int flag);
 extern bool get_close_on_exec(unsigned int fd);
 extern void put_filp(struct file *);
-extern int alloc_fd(unsigned start, unsigned flags);
 extern int get_unused_fd_flags(unsigned flags);
 #define get_unused_fd() get_unused_fd_flags(0)
 extern void put_unused_fd(unsigned int fd);