Skip to content

EDAC: Constify struct kobj_type

Hongbo Li linux-edac 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2EDAC: Constify struct kobj_type for edac_device_sysfsdrivers/edac/edac_device_sysfs.c+3 -30 replies
2/2EDAC: Constify struct kobj_type for edac_pci_sysfsdrivers/edac/edac_pci_sysfs.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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