diff options
| author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-08 09:12:47 -0300 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-08 17:29:19 -0400 |
| commit | af3b39b4c64198a08271485c6c2214ff637c3cbd (patch) | |
| tree | 51db6141856eeaf442dc2d64a45ff6abe1e79bc1 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | bcachefs: member helper cleanups (diff) | |
| download | linux-af3b39b4c64198a08271485c6c2214ff637c3cbd.tar.gz linux-af3b39b4c64198a08271485c6c2214ff637c3cbd.zip | |
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 <lihongbo22@huawei.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
