diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-28 12:51:41 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-28 12:51:41 -0400 |
| commit | 574979c617eb9593f8dfbb804da3f0e00f8bf28e (patch) | |
| tree | eb298afb7519734abf04a1a163b8ba646515f1e8 /include/linux | |
| parent | 3159269ef484954985cbbf1ff89976f090a18b24 (diff) | |
sysfs: sysfs_create_groups returns a value.
When I included the "empty" function for sysfs_create_groups() when
CONFIG_SYSFS=n, I forgot to return a value for it, so things blew up the
build. This patch fixes that, stupid me.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sysfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index e647a1aa0723..11baec7c9b26 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
| @@ -353,6 +353,7 @@ static inline int sysfs_create_group(struct kobject *kobj, | |||
| 353 | static inline int sysfs_create_groups(struct kobject *kobj, | 353 | static inline int sysfs_create_groups(struct kobject *kobj, |
| 354 | const struct attribute_group **groups) | 354 | const struct attribute_group **groups) |
| 355 | { | 355 | { |
| 356 | return 0; | ||
| 356 | } | 357 | } |
| 357 | 358 | ||
| 358 | static inline int sysfs_update_group(struct kobject *kobj, | 359 | static inline int sysfs_update_group(struct kobject *kobj, |
