diff options
author | Ricardo B. Marliere <[email protected]> | 2024-03-02 13:47:23 -0300 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2024-03-10 18:15:48 -0400 |
commit | ee8dda6a7e9d28260e30ecaf8b5f27d176c8ade0 (patch) | |
tree | 00a2b78de5b663b0b4995508427230f65c2252ae /tools/perf/util/trace-event-scripting.c | |
parent | f1fb41765d0bff77514ffeaef37bbb45608f6c62 (diff) |
scsi: pmcraid: Make pmcraid_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 pmcraid_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 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions