mbox series

[-next,0/2] EDAC: Constify struct kobj_type

Message ID 20240904011202.2009727-1-lihongbo22@huawei.com (mailing list archive)
Headers show
Series EDAC: Constify struct kobj_type | expand

Message

Hongbo Li Sept. 4, 2024, 1:12 a.m. UTC
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(-)