rcu: improve kerneldoc for rcu_read_lock(), call_rcu(), and synchronize_rcu()
[firefly-linux-kernel-4.4.55.git] / include / linux / sysfs.h
index f2694eb4dd3dcb983ebaefd8f1e707b7130ed421..3c92121ba9afb3f75700e540e24c52f3aae8b974 100644 (file)
@@ -22,14 +22,8 @@ struct kobject;
 struct module;
 enum kobj_ns_type;
 
-/* FIXME
- * The *owner field is no longer used.
- * x86 tree has been cleaned up. The owner
- * attribute is still left for other arches.
- */
 struct attribute {
        const char              *name;
-       struct module           *owner;
        mode_t                  mode;
 #ifdef CONFIG_DEBUG_LOCK_ALLOC
        struct lock_class_key   *key;
@@ -136,8 +130,8 @@ int __must_check sysfs_create_file(struct kobject *kobj,
                                   const struct attribute *attr);
 int __must_check sysfs_create_files(struct kobject *kobj,
                                   const struct attribute **attr);
-int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr,
-                                 mode_t mode);
+int __must_check sysfs_chmod_file(struct kobject *kobj,
+                                 const struct attribute *attr, mode_t mode);
 void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
 void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
 
@@ -225,7 +219,7 @@ static inline int sysfs_create_files(struct kobject *kobj,
 }
 
 static inline int sysfs_chmod_file(struct kobject *kobj,
-                                  struct attribute *attr, mode_t mode)
+                                  const struct attribute *attr, mode_t mode)
 {
        return 0;
 }