public inbox for driver-core@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH 1/2] sysfs: remove exports of sysfs_*change_owner()
@ 2026-02-05 13:09 Greg Kroah-Hartman
  2026-02-05 13:09 ` [PATCH 2/2] driver core: remove device_change_owner() export Greg Kroah-Hartman
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Greg Kroah-Hartman @ 2026-02-05 13:09 UTC (permalink / raw)
  To: rafael, dakr; +Cc: driver-core, linux-kernel, Greg Kroah-Hartman

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.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 fs/sysfs/file.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 3825e780cc58..a8176c875f55 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.
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-02-05 14:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05 13:09 [PATCH 1/2] sysfs: remove exports of sysfs_*change_owner() Greg Kroah-Hartman
2026-02-05 13:09 ` [PATCH 2/2] driver core: remove device_change_owner() export Greg Kroah-Hartman
2026-02-05 13:15   ` Danilo Krummrich
2026-02-05 13:39   ` Rafael J. Wysocki
2026-02-05 13:15 ` [PATCH 1/2] sysfs: remove exports of sysfs_*change_owner() Danilo Krummrich
2026-02-05 13:38 ` Rafael J. Wysocki
2026-02-05 14:35 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox