]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
sysfs: sysfs_create_groups returns a value.
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 16:51:41 +0000 (09:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 16:51:41 +0000 (09:51 -0700)
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>
include/linux/sysfs.h

index e647a1aa0723fda8b9faa7f365abc692a0e5ac3d..11baec7c9b26dd4bfeb19ee4447c11cdda737a3c 100644 (file)
@@ -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,