Content-Type: multipart/mixed; boundary="===============2550911560103994556==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] sysfs: __sysfs_add_file_to_group() can be static Date: Tue, 21 Dec 2021 04:16:16 +0800 Message-ID: <20211220201616.GA26722@70be3f45abc0> In-Reply-To: <20211220064730.28806-1-zajec5@gmail.com> List-Id: --===============2550911560103994556== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable fs/sysfs/file.c:379:5: warning: symbol '__sysfs_add_file_to_group' was not = declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 30c798c38d89d..fe58c4fd4c60d 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -376,10 +376,10 @@ EXPORT_SYMBOL_GPL(sysfs_create_files); * @attr: attribute descriptor. * @group: group name. */ -int __sysfs_add_file_to_group(struct kobject *kobj, - const struct attribute *attr, - const struct bin_attribute *battr, - const char *group) +static int __sysfs_add_file_to_group(struct kobject *kobj, + const struct attribute *attr, + const struct bin_attribute *battr, + const char *group) { struct kernfs_node *parent; kuid_t uid; --===============2550911560103994556==--