From: sashiko-bot@kernel.org
To: "Guru Das Srinagesh" <linux@gurudas.dev>
Cc: "Alexandre Courbot" <acourbot@nvidia.com>,
ojeda@kernel.org, dri-devel@lists.freedesktop.org,
"Danilo Krummrich" <dakr@kernel.org>
Subject: Re: [PATCH 4/7] block: rnull: use vertical import style
Date: Tue, 30 Jun 2026 07:09:16 +0000 [thread overview]
Message-ID: <20260630070916.7608D1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260628-b4-rust-vertical-imports-v1-4-98bc71d4810b@gurudas.dev>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Incomplete conversion to the vertical import style.
--
commit 6c2e9db0f7ba63fbe028e5d4f157502143caf612
Author: Guru Das Srinagesh <linux@gurudas.dev>
Subject: block: rnull: use vertical import style
This commit converts the use imports in the rnull block driver to a vertical
layout to improve readability and maintainability.
> diff --git a/drivers/block/rnull/configfs.rs b/drivers/block/rnull/configfs.rs
> index 7c2eb5c0b7228..07ce21a440813 100644
> --- a/drivers/block/rnull/configfs.rs
> +++ b/drivers/block/rnull/configfs.rs
> @@ -2,14 +2,26 @@
>
> use super::{NullBlkDevice, THIS_MODULE};
[Severity: Low]
This isn't a bug, but should this import also be converted to the vertical
layout since it contains multiple items in braces?
[ ... ]
> new_mutex,
> page::PAGE_SIZE,
> prelude::*,
> - str::{kstrtobool_bytes, CString},
> + str::{
> + kstrtobool_bytes,
> + CString, //
> + },
> sync::Mutex,
> };
[Severity: Low]
This isn't a bug, but does this final item of the outer block also need a
trailing // to ensure rustfmt preserves the vertical formatting?
> diff --git a/drivers/block/rnull/rnull.rs b/drivers/block/rnull/rnull.rs
> index 0ca8715febe83..d58d2c4c5f635 100644
> --- a/drivers/block/rnull/rnull.rs
> +++ b/drivers/block/rnull/rnull.rs
[ ... ]
> prelude::*,
> - sync::{aref::ARef, Arc},
> + sync::{
> + aref::ARef,
> + Arc, //
> + },
> };
[Severity: Low]
Similar to the configfs.rs file, does the sync block need a trailing //
after its closing brace to keep the outer block vertically formatted?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260628-b4-rust-vertical-imports-v1-0-98bc71d4810b@gurudas.dev?part=4
next prev parent reply other threads:[~2026-06-30 7:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-29 3:38 [PATCH 0/7] rust: Use kernel style vertical imports in various drivers Guru Das Srinagesh
2026-06-29 3:38 ` [PATCH 1/7] samples: rust_dma: use vertical import style Guru Das Srinagesh
2026-06-30 9:48 ` Danilo Krummrich
2026-06-29 3:38 ` [PATCH 2/7] pwm: th1520: " Guru Das Srinagesh
2026-06-30 7:09 ` sashiko-bot
2026-06-29 3:38 ` [PATCH 3/7] cpufreq: rcpufreq_dt: " Guru Das Srinagesh
2026-06-29 12:43 ` Zhongqiu Han
2026-06-30 8:35 ` Miguel Ojeda
2026-06-30 7:09 ` sashiko-bot
2026-06-29 3:38 ` [PATCH 4/7] block: rnull: " Guru Das Srinagesh
2026-06-30 7:09 ` sashiko-bot [this message]
2026-06-29 3:38 ` [PATCH 5/7] net: phy: ax88796b: " Guru Das Srinagesh
2026-06-29 3:38 ` [PATCH 6/7] net: phy: qt2025: " Guru Das Srinagesh
2026-06-29 3:38 ` [PATCH 7/7] drm/nova: " Guru Das Srinagesh
2026-06-29 14:06 ` [PATCH 0/7] rust: Use kernel style vertical imports in various drivers Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260630070916.7608D1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=acourbot@nvidia.com \
--cc=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux@gurudas.dev \
--cc=ojeda@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox