Skip to content

Commit

Permalink
sysfs: add sysfs_create/remove_groups for when SYSFS is not enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Aug 28, 2013
1 parent 6396768 commit f799878
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/linux/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit f799878

Please sign in to comment.