block/rnbd: make all 'class' structures const
authorIvan Orlov <ivan.orlov0322@gmail.com>
Tue, 20 Jun 2023 18:01:30 +0000 (20:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2023 13:45:19 +0000 (07:45 -0600)
commit137380c0ec40710cbaf57c7878726c41a6da81cd
tree8f4b1fff99eca864dec630ef4c875b072ce9ee97
parent56e71bdf324d6ab263eba1fc3fa1f3fd8bb5678e
block/rnbd: make all 'class' structures const

Now that the driver core allows for struct class to be in read-only
memory, making all 'class' structures to be declared at build time
placing them into read-only memory, instead of having to be dynamically
allocated at load time.

Cc: "Md. Haris Iqbal" <haris.iqbal@ionos.com>
Cc: Jack Wang <jinpu.wang@ionos.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>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Link: https://lore.kernel.org/r/20230620180129.645646-5-gregkh@linuxfoundation.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-clt-sysfs.c
drivers/block/rnbd/rnbd-srv-sysfs.c