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

sysfs: make sysfs_init_inode() static

With sysfs_fill_super() converted to use sysfs_get_inode(), there is
no user of sysfs_init_inode() outside of fs/sysfs/inode.c. Make it
static.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Tejun Heo and committed by
Greg Kroah-Hartman
bc37e283 e080e436

+1 -2
+1 -1
fs/sysfs/inode.c
··· 133 133 */ 134 134 static struct lock_class_key sysfs_inode_imutex_key; 135 135 136 - void sysfs_init_inode(struct sysfs_dirent *sd, struct inode *inode) 136 + static void sysfs_init_inode(struct sysfs_dirent *sd, struct inode *inode) 137 137 { 138 138 inode->i_blocks = 0; 139 139 inode->i_mapping->a_ops = &sysfs_aops;
-1
fs/sysfs/sysfs.h
··· 71 71 extern int sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt); 72 72 73 73 extern void sysfs_delete_inode(struct inode *inode); 74 - extern void sysfs_init_inode(struct sysfs_dirent *sd, struct inode *inode); 75 74 extern struct inode * sysfs_get_inode(struct sysfs_dirent *sd); 76 75 extern void sysfs_instantiate(struct dentry *dentry, struct inode *inode); 77 76