From: YueHaibing Date: Fri, 22 Mar 2019 14:04:00 +0000 (+0800) Subject: selinux: Make selinux_kernfs_init_security static X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c72c4cde8095aa0e4336cb337dac25d6e347240d;p=openwrt%2Fstaging%2Fblogic.git selinux: Make selinux_kernfs_init_security static Fix sparse warning: security/selinux/hooks.c:3389:5: warning: symbol 'selinux_kernfs_init_security' was not declared. Should it be static? Signed-off-by: YueHaibing Acked-by: Ondrej Mosnacek Signed-off-by: Paul Moore --- diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index ab4b049daf17..b6e61524d68d 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -3386,8 +3386,8 @@ static int selinux_inode_copy_up_xattr(const char *name) /* kernfs node operations */ -int selinux_kernfs_init_security(struct kernfs_node *kn_dir, - struct kernfs_node *kn) +static int selinux_kernfs_init_security(struct kernfs_node *kn_dir, + struct kernfs_node *kn) { const struct task_security_struct *tsec = current_security(); u32 parent_sid, newsid, clen;