From: Greg Kroah-Hartman Date: Thu, 5 Feb 2026 13:09:42 +0000 (+0100) Subject: sysfs: remove exports of sysfs_*change_owner() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d79ff2d612022548b09c3427c69263bedf7f16df;p=thirdparty%2Fkernel%2Flinux.git 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) Reviewed-by: Danilo Krummrich Reported-by: Lee Jones Reviewed-by: Lee Jones Link: https://patch.msgid.link/2026020541-energize-graduate-981a@gregkh Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 3825e780cc580..a8176c875f55e 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -689,7 +689,6 @@ int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid, return error; } -EXPORT_SYMBOL_GPL(sysfs_file_change_owner); /** * sysfs_change_owner - change owner of the given object. @@ -736,7 +735,6 @@ int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) return 0; } -EXPORT_SYMBOL_GPL(sysfs_change_owner); /** * sysfs_emit - scnprintf equivalent, aware of PAGE_SIZE buffer.