aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/file.c')
-rw-r--r--fs/sysfs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 0a7252aecfa5..bb71db63c99c 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -334,7 +334,7 @@ int sysfs_create_file_ns(struct kobject *kobj, const struct attribute *attr,
334} 334}
335EXPORT_SYMBOL_GPL(sysfs_create_file_ns); 335EXPORT_SYMBOL_GPL(sysfs_create_file_ns);
336 336
337int sysfs_create_files(struct kobject *kobj, const struct attribute **ptr) 337int sysfs_create_files(struct kobject *kobj, const struct attribute * const *ptr)
338{ 338{
339 int err = 0; 339 int err = 0;
340 int i; 340 int i;
@@ -493,7 +493,7 @@ bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr)
493 return ret; 493 return ret;
494} 494}
495 495
496void sysfs_remove_files(struct kobject *kobj, const struct attribute **ptr) 496void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *ptr)
497{ 497{
498 int i; 498 int i;
499 for (i = 0; ptr[i]; i++) 499 for (i = 0; ptr[i]; i++)