Commit 8511d72f authored by Christian Brauner's avatar Christian Brauner Committed by 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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Fixes: 303a4276 ("sysfs: add sysfs_group{s}_change_owner()")
Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment