diff options
| author | Ricardo B. Marliere <[email protected]> | 2024-03-02 16:47:24 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2024-03-10 22:15:48 +0000 |
| commit | a08f0eb02981ebeccc6c62833e673cc06a29393b (patch) | |
| tree | bc2148af4d4cea3f3ca8054e321f36a7cd08388c /scripts/gcc-plugins/gcc-common.h | |
| parent | scsi: pmcraid: Make pmcraid_class constant (diff) | |
| download | kernel-a08f0eb02981ebeccc6c62833e673cc06a29393b.tar.gz kernel-a08f0eb02981ebeccc6c62833e673cc06a29393b.zip | |
scsi: cxlflash: Make cxlflash_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 cxlflash_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
