]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: fix static inline declaration of sysfs_groups_change_owner()
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 19 Mar 2020 14:47:41 +0000 (15:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 04:17:20 +0000 (21:17 -0700)
commit19da4416954074c07af3260d9fe20d06b1cd1b1d
tree5d98b5946fc50efade884c06299feadda02bb084
parente9738b1a7dc19fe998fd76a2ec38adf2cd37916b
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: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: d9238a97d9eb ("sysfs: add sysfs_group{s}_change_owner()")
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sysfs.h