]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: dma: update to keyworded index projection syntax
authorGary Guo <gary@garyguo.net>
Tue, 2 Jun 2026 14:17:55 +0000 (15:17 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Fri, 5 Jun 2026 08:16:46 +0000 (10:16 +0200)
commitbd8e8087cff52c2d04e1934e9dbe14b84ff6c795
tree9ee8647d15917e8599335611d7e91d25577b419e
parent38c3cbf5072ed85cea1559cbb36a760f7dabb114
rust: dma: update to keyworded index projection syntax

Demonstrate the preferred syntax of index projection in DMA documentation
and examples. A few `[i]?` cases are converted to demonstrate the new
variant.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Gary Guo <gary@garyguo.net>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260602-projection-syntax-rework-v2-4-6989470f5440@garyguo.net
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/dma.rs
samples/rust/rust_dma.rs