]> www.infradead.org Git - users/willy/pagecache.git/commit
params: Prepare for 'const struct module_attribute *'
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 16 Dec 2024 17:25:08 +0000 (18:25 +0100)
committerPetr Pavlu <petr.pavlu@suse.com>
Sun, 26 Jan 2025 12:05:23 +0000 (13:05 +0100)
commit30d446088866db99b0cf9e6af58ac1427f51f3dd
tree3094215568c3f3fb7a891a9c53bfe2e090685b33
parentc8e0bd579ed35355ea7e3e3190556c9738870ac9
params: Prepare for 'const struct module_attribute *'

The 'struct module_attribute' sysfs callbacks are about to change to
receive a 'const struct module_attribute *' parameter.
Prepare for that by avoid casting away the constness through
container_of() and using const pointers to 'struct param_attribute'.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Link: https://lore.kernel.org/r/20241216-sysfs-const-attr-module-v1-1-3790b53e0abf@weissschuh.net
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
kernel/params.c