From: Greg Kroah-Hartman Date: Sat, 8 Mar 2025 06:11:36 +0000 (+0100) Subject: 6.13-stable patches X-Git-Tag: v6.6.82~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68465ebc71c03c514b1483393e368f26ed6d0af6;p=thirdparty%2Fkernel%2Fstable-queue.git 6.13-stable patches added patches: rust-block-fix-formatting-in-gendisk-doc.patch series --- diff --git a/queue-6.13/rust-block-fix-formatting-in-gendisk-doc.patch b/queue-6.13/rust-block-fix-formatting-in-gendisk-doc.patch new file mode 100644 index 0000000000..4eb7c8aacf --- /dev/null +++ b/queue-6.13/rust-block-fix-formatting-in-gendisk-doc.patch @@ -0,0 +1,46 @@ +From 0c5928deada15a8d075516e6e0d9ee19011bb000 Mon Sep 17 00:00:00 2001 +From: Yutaro Ohno +Date: Thu, 24 Oct 2024 00:54:59 +0900 +Subject: rust: block: fix formatting in GenDisk doc + +From: Yutaro Ohno + +commit 0c5928deada15a8d075516e6e0d9ee19011bb000 upstream. + +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 +Reviewed-by: Boqun Feng +Acked-by: Andreas Hindborg +Link: https://lore.kernel.org/r/ZxkcU5yTFCagg_lX@ohnotp +Signed-off-by: Miguel Ojeda +Signed-off-by: Greg Kroah-Hartman +--- + rust/kernel/block/mq/gen_disk.rs | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +--- a/rust/kernel/block/mq/gen_disk.rs ++++ b/rust/kernel/block/mq/gen_disk.rs +@@ -174,9 +174,9 @@ impl GenDiskBuilder { + /// + /// # Invariants + /// +-/// - `gendisk` must always point to an initialized and valid `struct gendisk`. +-/// - `gendisk` was added to the VFS through a call to +-/// `bindings::device_add_disk`. ++/// - `gendisk` must always point to an initialized and valid `struct gendisk`. ++/// - `gendisk` was added to the VFS through a call to ++/// `bindings::device_add_disk`. + pub struct GenDisk { + _tagset: Arc>, + gendisk: *mut bindings::gendisk, diff --git a/queue-6.13/series b/queue-6.13/series new file mode 100644 index 0000000000..b65c7ec462 --- /dev/null +++ b/queue-6.13/series @@ -0,0 +1 @@ +rust-block-fix-formatting-in-gendisk-doc.patch