Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andreas Hindborg and committed by
Jens Axboe
8c32697c f52689fc

+1 -1
+1 -1
rust/kernel/block/mq/request.rs
··· 53 53 /// [`struct request`]: srctree/include/linux/blk-mq.h 54 54 /// 55 55 #[repr(transparent)] 56 - pub struct Request<T: Operations>(Opaque<bindings::request>, PhantomData<T>); 56 + pub struct Request<T>(Opaque<bindings::request>, PhantomData<T>); 57 57 58 58 impl<T: Operations> Request<T> { 59 59 /// Create an [`ARef<Request>`] from a [`struct request`] pointer.