module: Constify 'struct module_attribute'
Get series with b4
b4 am 20241216-sysfs-const-attr-module-v1-0-3790b53e0abf@weissschuh.net change-id 20241204-sysfs-const-attr-module-927afe76eda4Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | params: Prepare for 'const struct module_attribute *'kernel/ | +3 | 0 replies | |
| 2/3 | module: Handle 'struct module_version_attribute' as constinclude/ kernel/ | +3 | 0 replies | |
| 3/3 | module: Constify 'struct module_attribute'include/ kernel/ kernel/ +2 more | +34 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Petr Pavlu |
|---|---|
| Series | R-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] 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.
Signed-off-by Thomas Weißschuh <[email protected]>
---
Thomas Weißschuh (3):
params: Prepare for 'const struct module_attribute *'
module: Handle 'struct module_version_attribute' as const
module: Constify 'struct module_attribute'
include/linux/module.h | 10 +++++----- kernel/module/internal.h | 4 ++-- kernel/module/main.c | 40 ++++++++++++++++++++-------------------- kernel/module/sysfs.c | 4 ++-- kernel/params.c | 22 +++++++++++----------- 5 files changed, 40 insertions(+), 40 deletions(-)
---
base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
change-id: 20241204-sysfs-const-attr-module-927afe76eda4
Best regards,
Signature · 1 line
Thomas Weißschuh <[email protected]>