sysfs: add sysfs_create/remove_groups for when SYSFS is not enabled

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>
This commit is contained in:
Greg Kroah-Hartman 2013-08-27 17:24:49 -07:00
parent 6396768560
commit f799878000
1 changed files with 10 additions and 0 deletions

View 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)
{