summaryrefslogtreecommitdiff
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-08-15 09:43:23 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-26 08:08:39 +0400
commitf20a9ead0d005fbeeae3fc21a96f9bf197ac1c1c (patch)
treeb8fb72701b5917d03b6fe122a1719e1cd608b4d9 /include/linux/sysfs.h
parentf86db396ff455ed586751d21816a1ebd431264e5 (diff)
downloadlinux-f20a9ead0d005fbeeae3fc21a96f9bf197ac1c1c.tar.xz
sysfs: add proper sysfs_init() prototype
Don't be crufty. Mark it __must_check too. Cc: "Randy.Dunlap" <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/sysfs.h')
-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 *,
void sysfs_remove_group(struct kobject *, const struct attribute_group *);
void sysfs_notify(struct kobject * k, char *dir, char *attr);
+extern int __must_check sysfs_init(void);
+
#else /* CONFIG_SYSFS */
static inline int sysfs_create_dir(struct kobject * k)
@@ -194,6 +196,11 @@ static inline void sysfs_notify(struct kobject * k, char *dir, char *attr)
{
}
+static inline int __must_check sysfs_init(void)
+{
+ return 0;
+}
+
#endif /* CONFIG_SYSFS */
#endif /* _SYSFS_H_ */