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: fix formatting in GenDisk doc

Align bullet points and improve indentation in the `Invariants` section
of the `GenDisk` struct documentation for better readability.

[ Yutaro is also working on implementing the lint we suggested to catch
this sort of issue in upstream Rust:

https://github.com/rust-lang/rust-clippy/issues/13601
https://github.com/rust-lang/rust-clippy/pull/13711

Thanks a lot! - Miguel ]

Fixes: 3253aba3408a ("rust: block: introduce `kernel::block::mq` module")
Signed-off-by: Yutaro Ohno <yutaro.ono.418@gmail.com>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Acked-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/ZxkcU5yTFCagg_lX@ohnotp
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

authored by

Yutaro Ohno and committed by
Miguel Ojeda
0c5928de 517743c4

+3 -3
+3 -3
rust/kernel/block/mq/gen_disk.rs
··· 174 174 /// 175 175 /// # Invariants 176 176 /// 177 - /// - `gendisk` must always point to an initialized and valid `struct gendisk`. 178 - /// - `gendisk` was added to the VFS through a call to 179 - /// `bindings::device_add_disk`. 177 + /// - `gendisk` must always point to an initialized and valid `struct gendisk`. 178 + /// - `gendisk` was added to the VFS through a call to 179 + /// `bindings::device_add_disk`. 180 180 pub struct GenDisk<T: Operations> { 181 181 _tagset: Arc<TagSet<T>>, 182 182 gendisk: *mut bindings::gendisk,