]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sysfs: remove exports of sysfs_*change_owner()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Feb 2026 13:09:42 +0000 (14:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Feb 2026 15:49:38 +0000 (16:49 +0100)
commitd79ff2d612022548b09c3427c69263bedf7f16df
treed183b470a46367e62c422a9f45e9f547f6e1ee7b
parentc5048ddee936ca5ce0aeb79172ce512130779d31
sysfs: remove exports of sysfs_*change_owner()

Both sysfs_change_owner() and sysfs_file_change_owner() are exported to
modules, but there are no in-kernel module users, so remove the exports
so that crazy out-of-tree drivers don't get the impression that it is
safe to call these functions at all.

Reviewed-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Reported-by: Lee Jones <lee@kernel.org>
Reviewed-by: Lee Jones <lee@kernel.org>
Link: https://patch.msgid.link/2026020541-energize-graduate-981a@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/file.c