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: mq: fix spelling in a safety comment

Add code block quotes to a safety comment.

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-15-b5212cc89b98@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Andreas Hindborg and committed by
Jens Axboe
bde50e28 90d952fa

+1 -1
+1 -1
rust/kernel/block/mq/request.rs
··· 148 148 // valid allocation. 149 149 let wrapper_ptr = 150 150 unsafe { bindings::blk_mq_rq_to_pdu(request_ptr).cast::<RequestDataWrapper>() }; 151 - // SAFETY: By C API contract, wrapper_ptr points to a valid allocation 151 + // SAFETY: By C API contract, `wrapper_ptr` points to a valid allocation 152 152 // and is not null. 153 153 unsafe { NonNull::new_unchecked(wrapper_ptr) } 154 154 }