Content-Type: multipart/mixed; boundary="===============3993104203006960044==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] securityfs: _securityfs_create_symlink() can be static Date: Wed, 01 Dec 2021 11:55:24 +0800 Message-ID: <20211201035524.GA148819@7e434c4ceae0> In-Reply-To: <20211130160654.1418231-13-stefanb@linux.ibm.com> List-Id: --===============3993104203006960044== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable security/inode.c:243:15: warning: symbol '_securityfs_create_symlink' was n= ot declared. Should it be static? security/inode.c:303:6: warning: symbol '_securityfs_remove' was not declar= ed. 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 =3D NULL; @@ -300,7 +300,7 @@ struct dentry *securityfs_create_symlink(const char *na= me, } EXPORT_SYMBOL_GPL(securityfs_create_symlink); = -void _securityfs_remove(struct dentry *dentry, struct vfsmount **mount, in= t *mount_count) +static void _securityfs_remove(struct dentry *dentry, struct vfsmount **mo= unt, int *mount_count) { struct inode *dir; =20 --===============3993104203006960044==--