Signed-off-by: Andrew Morton --- fs/namespace.c | 1 + include/linux/sysfs.h | 7 +++++++ 2 files changed, 8 insertions(+) diff -puN fs/namespace.c~gregkh-driver-sysfs-add-proper-sysfs_init-prototype fs/namespace.c --- a/fs/namespace.c~gregkh-driver-sysfs-add-proper-sysfs_init-prototype +++ a/fs/namespace.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff -puN include/linux/sysfs.h~gregkh-driver-sysfs-add-proper-sysfs_init-prototype include/linux/sysfs.h --- a/include/linux/sysfs.h~gregkh-driver-sysfs-add-proper-sysfs_init-prototype +++ a/include/linux/sysfs.h @@ -127,6 +127,8 @@ int __must_check sysfs_create_group(stru 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_init(void) @@ -203,6 +205,11 @@ static inline void sysfs_notify(struct k { } +static inline int __must_check sysfs_init(void) +{ + return 0; +} + #endif /* CONFIG_SYSFS */ #endif /* _SYSFS_H_ */ _