aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorRicardo B. Marliere <[email protected]>2024-03-02 16:47:25 +0000
committerMartin K. Petersen <[email protected]>2024-03-10 22:15:48 +0000
commitac9f3ac5b86c41196bfd0c114d97db359b3bc44a (patch)
tree1c729cddcceab362cbb919258222c311a52c4709 /scripts/gcc-plugins/gcc-common.h
parentscsi: cxlflash: Make cxlflash_class constant (diff)
downloadkernel-ac9f3ac5b86c41196bfd0c114d97db359b3bc44a.tar.gz
kernel-ac9f3ac5b86c41196bfd0c114d97db359b3bc44a.zip
scsi: ch: Make ch_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 ch_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 <[email protected]> Suggested-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Ricardo B. Marliere <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions