Tuesday, 21 December
2021
Tue, 21 Dec
'21
7:16 a.m.
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 <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
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;
Show replies by date