diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-02 13:47:24 -0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-03-10 18:15:48 -0400 |
commit | a08f0eb02981ebeccc6c62833e673cc06a29393b (patch) | |
tree | bc2148af4d4cea3f3ca8054e321f36a7cd08388c /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | ee8dda6a7e9d28260e30ecaf8b5f27d176c8ade0 (diff) |
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 <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-3-b9096b990e27@marliere.net
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions