Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

make alloc_file() static

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro ee1904ba 4f089acc

+1 -4
+1 -2
fs/file_table.c
··· 157 157 * @flags: O_... flags with which the new file will be opened 158 158 * @fop: the 'struct file_operations' for the new file 159 159 */ 160 - struct file *alloc_file(const struct path *path, int flags, 160 + static struct file *alloc_file(const struct path *path, int flags, 161 161 const struct file_operations *fop) 162 162 { 163 163 struct file *file; ··· 182 182 i_readcount_inc(path->dentry->d_inode); 183 183 return file; 184 184 } 185 - EXPORT_SYMBOL(alloc_file); 186 185 187 186 struct file *alloc_file_pseudo(struct inode *inode, struct vfsmount *mnt, 188 187 const char *name, int flags,
-2
include/linux/file.h
··· 19 19 struct dentry; 20 20 struct inode; 21 21 struct path; 22 - extern struct file *alloc_file(const struct path *, int flags, 23 - const struct file_operations *fop); 24 22 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *, 25 23 const char *, int flags, const struct file_operations *); 26 24 extern struct file *alloc_file_clone(struct file *, int flags,