]> www.infradead.org Git - users/willy/pagecache.git/commit
module: Handle 'struct module_version_attribute' as const
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 16 Dec 2024 17:25:09 +0000 (18:25 +0100)
committerPetr Pavlu <petr.pavlu@suse.com>
Sun, 26 Jan 2025 12:05:23 +0000 (13:05 +0100)
commit38e3fe6595e1fa806c0450b2db666bc46325025e
tree5c34edc0b99b9f74f04ace818b8e2807e996190f
parent30d446088866db99b0cf9e6af58ac1427f51f3dd
module: Handle 'struct module_version_attribute' as const

The structure is always read-only due to its placement in the read-only
section __modver. Reflect this at its usage sites.
Also prepare for the const handling of 'struct module_attribute' itself.

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-2-3790b53e0abf@weissschuh.net
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
include/linux/module.h
kernel/params.c