aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sysfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 02ad790921fd..6d5c43d31dec 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -123,6 +123,8 @@ int __must_check sysfs_create_group(struct kobject *,
123void sysfs_remove_group(struct kobject *, const struct attribute_group *); 123void sysfs_remove_group(struct kobject *, const struct attribute_group *);
124void sysfs_notify(struct kobject * k, char *dir, char *attr); 124void sysfs_notify(struct kobject * k, char *dir, char *attr);
125 125
126extern int __must_check sysfs_init(void);
127
126#else /* CONFIG_SYSFS */ 128#else /* CONFIG_SYSFS */
127 129
128static inline int sysfs_create_dir(struct kobject * k) 130static inline int sysfs_create_dir(struct kobject * k)
@@ -194,6 +196,11 @@ static inline void sysfs_notify(struct kobject * k, char *dir, char *attr)
194{ 196{
195} 197}
196 198
199static inline int __must_check sysfs_init(void)
200{
201 return 0;
202}
203
197#endif /* CONFIG_SYSFS */ 204#endif /* CONFIG_SYSFS */
198 205
199#endif /* _SYSFS_H_ */ 206#endif /* _SYSFS_H_ */