提交 f7998780 编写于 作者: G Greg Kroah-Hartman

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

We need these functions for when CONFIG_SYSFS=n.
Reported-by: NFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 63967685
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册