summaryrefslogtreecommitdiff
path: root/kernel/bpf/bpf_lsm.c
diff options
context:
space:
mode:
authorRicardo B. Marliere <ricardo@marliere.net>2024-03-02 13:47:26 -0300
committerMartin K. Petersen <martin.petersen@oracle.com>2024-03-10 18:15:49 -0400
commit0822853d658bbfa93bb16716ab10819788ad0550 (patch)
tree3957e7f65344c1268e6b32173e100661a35aa987 /kernel/bpf/bpf_lsm.c
parentac9f3ac5b86c41196bfd0c114d97db359b3bc44a (diff)
scsi: st: Make st_sysfs_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take a const *"), the driver core allows for struct class to be in read-only memory, so move the st_sysfs_class structure to be declared at build time placing it into read-only memory, instead of having to be dynamically allocated at boot time. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net> Link: https://lore.kernel.org/r/20240302-class_cleanup-scsi-v1-5-b9096b990e27@marliere.net Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'kernel/bpf/bpf_lsm.c')
0 files changed, 0 insertions, 0 deletions