sysfs: add sysfs_create/remove_groups for when SYSFS is not enabled
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 00:24:49 +0000 (17:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 00:24:49 +0000 (17:24 -0700)
We need these functions for when CONFIG_SYSFS=n.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/sysfs.h

index 69c1ff003628372b2b08af730d858ec0388f4d0d..e647a1aa0723fda8b9faa7f365abc692a0e5ac3d 100644 (file)
@@ -350,6 +350,11 @@ static inline int sysfs_create_group(struct kobject *kobj,
        return 0;
 }
 
+static inline int sysfs_create_groups(struct kobject *kobj,
+                                     const struct attribute_group **groups)
+{
+}
+
 static inline int sysfs_update_group(struct kobject *kobj,
                                const struct attribute_group *grp)
 {
@@ -361,6 +366,11 @@ static inline void sysfs_remove_group(struct kobject *kobj,
 {
 }
 
+static inline void sysfs_remove_groups(struct kobject *kobj,
+                                      const struct attribute_group **groups)
+{
+}
+
 static inline int sysfs_add_file_to_group(struct kobject *kobj,
                const struct attribute *attr, const char *group)
 {