]> www.infradead.org Git - nvme.git/commit
rust: block: do not use removed queue flag API
authorAndreas Hindborg <a.hindborg@samsung.com>
Thu, 20 Jun 2024 08:57:21 +0000 (10:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2024 12:54:48 +0000 (06:54 -0600)
commit5ddb88f22eb97218d9295e69c39e0ff7cc64e09c
treeb9bebce12049651046186fd4d104c4adef5dab7f
parent69c34f07e45f2d52d9a41991867a1e5a85bbaaf3
rust: block: do not use removed queue flag API

`blk_queue_flag_set` and `blk_queue_flag_clear` was removed in favor of a
new API. This caused a build error for Rust block device abstractions.
Thus, use the new feature passing API instead of the old removed API.

Fixes: bd4a633b6f7c ("block: move the nonrot flag to queue_limits")
Signed-off-by: Andreas Hindborg <a.hindborg@samsung.com>
Link: https://lore.kernel.org/r/20240620085721.1218296-1-nmi@metaspace.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
rust/kernel/block/mq/gen_disk.rs