Skip to content

Commit 8c32697

Browse files
Andreas Hindborgaxboe
authored andcommitted
rust: block: remove trait bound from mq::Request definition
Remove the trait bound `T:Operations` from `mq::Request`. The bound is not required, so remove it to reduce complexity. Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com> Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org> Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-10-b5212cc89b98@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent f52689f commit 8c32697

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/block/mq/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use core::{
5353
/// [`struct request`]: srctree/include/linux/blk-mq.h
5454
///
5555
#[repr(transparent)]
56-
pub struct Request<T: Operations>(Opaque<bindings::request>, PhantomData<T>);
56+
pub struct Request<T>(Opaque<bindings::request>, PhantomData<T>);
5757

5858
impl<T: Operations> Request<T> {
5959
/// Create an [`ARef<Request>`] from a [`struct request`] pointer.

0 commit comments

Comments
 (0)