diff options
| author | Ricardo B. Marliere <[email protected]> | 2024-03-08 09:12:47 -0300 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2024-05-08 17:29:19 -0400 |
| commit | af3b39b4c64198a08271485c6c2214ff637c3cbd (patch) | |
| tree | 51db6141856eeaf442dc2d64a45ff6abe1e79bc1 /tools/perf/scripts/python | |
| parent | 2f724563fcd76166b9922c506078a4afa4e3a90a (diff) | |
bcachefs: chardev: make bch_chardev_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 bch_chardev_class structure to be declared at build
time placing it into read-only memory, instead of having to be dynamically
allocated at boot time. Also, correctly clean up after failing paths in
bch2_chardev_init().
Cc: Hongbo Li <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Suggested-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Ricardo B. Marliere <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions