EDAC: Constify struct kobj_type
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | EDAC: Constify struct kobj_type for edac_device_sysfsdrivers/ | +3 | 0 replies | |
| 2/2 | EDAC: Constify struct kobj_type for edac_pci_sysfsdrivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH -next 0/2] EDAC: Constify struct kobj_type
These 'struct kobj_type' are not modified. They are only used in kobject_init_and_add() which takes a 'const struct kobj_type *ktype' parameter.
We can constify these struct to move them to text section, and increase over all security.
Hongbo Li (2):
EDAC: Constify struct kobj_type for edac_device_sysfs
EDAC: Constify struct kobj_type for edac_pci_sysfs
drivers/edac/edac_device_sysfs.c | 6 +++--- drivers/edac/edac_pci_sysfs.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.34.1