diff options
| author | Thomas Weißschuh <[email protected]> | 2024-12-16 17:25:10 +0000 |
|---|---|---|
| committer | Petr Pavlu <[email protected]> | 2025-01-26 12:05:23 +0000 |
| commit | f3227ffda07470848abe3cfa2039b21816ce3090 (patch) | |
| tree | 576fe7369c447a6aa2a7327161ac654333d3337d /mm/debug.c | |
| parent | module: Handle 'struct module_version_attribute' as const (diff) | |
| download | kernel-f3227ffda07470848abe3cfa2039b21816ce3090.tar.gz kernel-f3227ffda07470848abe3cfa2039b21816ce3090.zip | |
module: Constify 'struct module_attribute'
These structs are never modified, move them to read-only memory.
This makes the API clearer and also prepares for the constification of
'struct attribute' itself.
While at it, also constify 'modinfo_attrs_count'.
Signed-off-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Petr Pavlu <[email protected]>
Link: https://lore.kernel.org/r/20241216-sysfs-const-attr-module-v1-3-3790b53e0abf@weissschuh.net
Signed-off-by: Petr Pavlu <[email protected]>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions
