mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
c5048ddee9
commit
d79ff2d612
1 changed files with 0 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue