mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-22 16:06:04 -05:00
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: 3253aba340
("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>
This commit is contained in:
parent
517743c4e3
commit
0c5928dead
1 changed files with 3 additions and 3 deletions
|
@ -174,9 +174,9 @@ pub fn build<T: Operations>(
|
||||||
///
|
///
|
||||||
/// # Invariants
|
/// # Invariants
|
||||||
///
|
///
|
||||||
/// - `gendisk` must always point to an initialized and valid `struct gendisk`.
|
/// - `gendisk` must always point to an initialized and valid `struct gendisk`.
|
||||||
/// - `gendisk` was added to the VFS through a call to
|
/// - `gendisk` was added to the VFS through a call to
|
||||||
/// `bindings::device_add_disk`.
|
/// `bindings::device_add_disk`.
|
||||||
pub struct GenDisk<T: Operations> {
|
pub struct GenDisk<T: Operations> {
|
||||||
_tagset: Arc<TagSet<T>>,
|
_tagset: Arc<TagSet<T>>,
|
||||||
gendisk: *mut bindings::gendisk,
|
gendisk: *mut bindings::gendisk,
|
||||||
|
|
Loading…
Reference in a new issue