Skip to content

Commit

Permalink
sysfs: sysfs_create_groups returns a value.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Aug 28, 2013
1 parent 3159269 commit 574979c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ static inline int sysfs_create_group(struct kobject *kobj,
static inline int sysfs_create_groups(struct kobject *kobj,
const struct attribute_group **groups)
{
return 0;
}

static inline int sysfs_update_group(struct kobject *kobj,
Expand Down

0 comments on commit 574979c

Please sign in to comment.