security/inode.c:243:15: warning: symbol '_securityfs_create_symlink' was not declared. Should it be static? security/inode.c:303:6: warning: symbol '_securityfs_remove' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- inode.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/security/inode.c b/security/inode.c index 429744ff4ab39..d7e9209cdf074 100644 --- a/security/inode.c +++ b/security/inode.c @@ -240,12 +240,12 @@ struct dentry *securityfs_create_dir(const char *name, struct dentry *parent) } EXPORT_SYMBOL_GPL(securityfs_create_dir); -struct dentry *_securityfs_create_symlink(const char *name, - struct dentry *parent, - const char *target, - const struct inode_operations *iops, - struct file_system_type *fs_type, - struct vfsmount **mount, int *mount_count) +static struct dentry *_securityfs_create_symlink(const char *name, + struct dentry *parent, + const char *target, + const struct inode_operations *iops, + struct file_system_type *fs_type, + struct vfsmount **mount, int *mount_count) { struct dentry *dent; char *link = NULL; @@ -300,7 +300,7 @@ struct dentry *securityfs_create_symlink(const char *name, } EXPORT_SYMBOL_GPL(securityfs_create_symlink); -void _securityfs_remove(struct dentry *dentry, struct vfsmount **mount, int *mount_count) +static void _securityfs_remove(struct dentry *dentry, struct vfsmount **mount, int *mount_count) { struct inode *dir;