1
linux/drivers/misc/cxl
Hongbo Li 5c09cfa5d2 cxl: Constify struct kobj_type
This 'struct kobj_type' is not modified. It is only used in
kobject_init_and_add() which takes a 'const struct kobj_type *ktype'
parameter.

Constifying this structure and moving it to a read-only section,
and can increase over all security.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://lore.kernel.org/r/20240904011951.2010646-1-lihongbo22@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-11 16:02:50 +02:00
..
api.c
base.c misc: Explicitly include correct DT includes 2023-08-04 15:39:04 +02:00
context.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
cxl.h powerpc: Add PVN support for HeXin C2000 processor 2023-12-01 21:15:33 +11:00
cxllib.c
debugfs.c
fault.c cxl: remove vma linked list walk 2022-09-26 19:46:20 -07:00
file.c cxl: make cxl_class constant 2023-10-25 11:08:54 +02:00
flash.c
guest.c cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter() 2022-11-24 23:31:24 +11:00
hcalls.c
hcalls.h
irq.c
Kconfig
main.c
Makefile
native.c cxl: Drop unused detach_spa() 2023-08-24 22:33:16 +10:00
of.c cxl: Use of_property_ accessor functions 2024-07-31 13:57:05 +02:00
pci.c cxl: Use of_property_ accessor functions 2024-07-31 13:57:05 +02:00
sysfs.c cxl: Constify struct kobj_type 2024-09-11 16:02:50 +02:00
trace.c
trace.h
vphb.c cxl: Remove unnecessary cxl_pci_window_alignment() 2022-12-06 23:15:06 +11:00