summaryrefslogtreecommitdiff
path: root/block/bsg.c
diff options
context:
space:
mode:
authorIvan Orlov <ivan.orlov0322@gmail.com>2023-06-20 21:01:32 +0300
committerJens Axboe <axboe@kernel.dk>2023-06-21 16:46:13 +0300
commit2eefd399d28a52739fdbeebe84775275f016171c (patch)
tree426fb7410039972b75b15bf60aa6cc538b1f49b2 /block/bsg.c
parent65d7a37d4e3e226bb4a4ddf73a827d0dbc77f530 (diff)
downloadlinux-2eefd399d28a52739fdbeebe84775275f016171c.tar.xz
ublk: make ublk_chr_class a static const structure
Now that the driver core allows for struct class to be in read-only memory, move the ublk_chr_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: Ming Lei <ming.lei@redhat.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: linux-block@vger.kernel.org Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20230620180129.645646-7-gregkh@linuxfoundation.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions