Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

-2
-2
fs/sysfs/file.c
··· 689 689 690 690 return error; 691 691 } 692 - EXPORT_SYMBOL_GPL(sysfs_file_change_owner); 693 692 694 693 /** 695 694 * sysfs_change_owner - change owner of the given object. ··· 735 736 736 737 return 0; 737 738 } 738 - EXPORT_SYMBOL_GPL(sysfs_change_owner); 739 739 740 740 /** 741 741 * sysfs_emit - scnprintf equivalent, aware of PAGE_SIZE buffer.