aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index f2694eb4dd3d..96eb576d82fd 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -16,20 +16,15 @@
16#include <linux/errno.h> 16#include <linux/errno.h>
17#include <linux/list.h> 17#include <linux/list.h>
18#include <linux/lockdep.h> 18#include <linux/lockdep.h>
19#include <linux/kobject_ns.h>
19#include <asm/atomic.h> 20#include <asm/atomic.h>
20 21
21struct kobject; 22struct kobject;
22struct module; 23struct module;
23enum kobj_ns_type; 24enum kobj_ns_type;
24 25
25/* FIXME
26 * The *owner field is no longer used.
27 * x86 tree has been cleaned up. The owner
28 * attribute is still left for other arches.
29 */
30struct attribute { 26struct attribute {
31 const char *name; 27 const char *name;
32 struct module *owner;
33 mode_t mode; 28 mode_t mode;
34#ifdef CONFIG_DEBUG_LOCK_ALLOC 29#ifdef CONFIG_DEBUG_LOCK_ALLOC
35 struct lock_class_key *key; 30 struct lock_class_key *key;
@@ -136,8 +131,8 @@ int __must_check sysfs_create_file(struct kobject *kobj,
136 const struct attribute *attr); 131 const struct attribute *attr);
137int __must_check sysfs_create_files(struct kobject *kobj, 132int __must_check sysfs_create_files(struct kobject *kobj,
138 const struct attribute **attr); 133 const struct attribute **attr);
139int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, 134int __must_check sysfs_chmod_file(struct kobject *kobj,
140 mode_t mode); 135 const struct attribute *attr, mode_t mode);
141void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr); 136void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
142void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr); 137void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
143 138
@@ -225,7 +220,7 @@ static inline int sysfs_create_files(struct kobject *kobj,
225} 220}
226 221
227static inline int sysfs_chmod_file(struct kobject *kobj, 222static inline int sysfs_chmod_file(struct kobject *kobj,
228 struct attribute *attr, mode_t mode) 223 const struct attribute *attr, mode_t mode)
229{ 224{
230 return 0; 225 return 0;
231} 226}