OSDN Git Service

aoe: make aoe_class a static const structure
authorIvan Orlov <ivan.orlov0322@gmail.com>
Tue, 20 Jun 2023 18:01:31 +0000 (20:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2023 13:45:19 +0000 (07:45 -0600)
commit65d7a37d4e3e226bb4a4ddf73a827d0dbc77f530
tree625eb6cbd9c42caa7f856a42922c617e7c3cf082
parent137380c0ec40710cbaf57c7878726c41a6da81cd
aoe: make aoe_class a static const structure

Now that the driver core allows for struct class to be in read-only
memory, move the aoe_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: Justin Sanders <justin@coraid.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-6-gregkh@linuxfoundation.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/aoe/aoechr.c