mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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>
This commit is contained in:
parent
f52689fcd8
commit
8c32697c4e
|
|
@ -53,7 +53,7 @@
|
|||
/// [`struct request`]: srctree/include/linux/blk-mq.h
|
||||
///
|
||||
#[repr(transparent)]
|
||||
pub struct Request<T: Operations>(Opaque<bindings::request>, PhantomData<T>);
|
||||
pub struct Request<T>(Opaque<bindings::request>, PhantomData<T>);
|
||||
|
||||
impl<T: Operations> Request<T> {
|
||||
/// Create an [`ARef<Request>`] from a [`struct request`] pointer.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user