提交 8511d72f 编写于 作者: C Christian Brauner 提交者: David S. Miller

sysfs: fix static inline declaration of sysfs_groups_change_owner()

The CONFIG_SYSFS declaration of sysfs_group_change_owner() is different
from the !CONFIG_SYSFS version and thus causes build failurs when
!CONFIG_SYSFS is set.
Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
Fixes: 303a4276 ("sysfs: add sysfs_group{s}_change_owner()")
Signed-off-by: NChristian Brauner <christian.brauner@ubuntu.com>
Reported-by: NRandy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5c9a9fce
......@@ -562,8 +562,8 @@ static inline int sysfs_groups_change_owner(struct kobject *kobj,
}
static inline int sysfs_group_change_owner(struct kobject *kobj,
const struct attribute_group **groups,
kuid_t kuid, kgid_t kgid)
const struct attribute_group *groups,
kuid_t kuid, kgid_t kgid)
{
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册