From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387456; b=bhJ9ATUFBT3xPJeA0S672b1CZ3T+qsTmoftP3Uqcq84E1oT/2KC+HAhbiDgMSkF0Zvwf J9YS143P5aNDSzPvzbGXNK0wRwrNdKjWnmXyXO77Mhn9Z0y7kxU0MK1HalqVGYo8XCb9R GxKZDsAnIBf1G8Lk+i8MwyP9NnSPqBWBhDMvKaDRDNTe61/SlAV5IemObq4fjHpZwhZGT rls2pFWagsddnZcwW5hE8sMpe/A2loiN2t0YV8/fnp4jAvyxiPJjYBCvNgtiiB19Y3iZQ s5mXHcKe/FlXkOT1N8uT6ScC72vkFyK9V31PdrRqPQS7veDRGBimJMG9Fet/WL1GqfQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387456; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=5lquBf9Wtqt6g1FXatottt2HxT2g5VwQM0cKvIyXjL8=; b=ofEoSbA+KregsagCNAcDSXA3P7osBUiHdCn6sNfbua/Dt6QekHKl9BN8yTCoNFzn62Q2 KmwPcPqTh0a48mZgWrB+MZKd4PRWDGrZLWD+wE5dtsl2ipbYkWLrKfhS+mqt859RVAouQ JtPEQCut2QK77ZgP22gYFeiVpAA3d27WCD088GRY4klQ+bz5gv2U4hycdzS8biu7jLOUR q/7GQ3YX8v49arNOU/nnh3IU5MHZwJ29XsNGbyynl7hmT1dNK0IzxTB6Pitj9HJZgSej6 WEB8nyODV3AHBzkEOq4in/iFCvTm7pkz5IRU1OZz66mMIA1HHdBF9JI7zaYY1pHPurA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lzuwyULm; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B333D606A322; Fri, 4 Dec 2026 12:30:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lzuwyULm Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D9DD1F000CE; Fri, 4 Dec 2026 12:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796387456; bh=5lquBf9Wtqt6g1FXatottt2HxT2g5VwQM0cKvIyXjL8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=lzuwyULmGoBORet8DEw+ozvEUkiKGhvTInojNLjTKzACvIBzufFFt66gg+0Eo8uME tBGxNwDRr5fsYDrZ45s73XU0N/HeNopc/zMz/a/02MlW8yAkNquHwlwAnSQ/4lO+fJ EpQ1MBT7suau+e4H3JsQzst0omrKudkXWK6/37JJ4oTK5TtygTFAtYP4XQTmX5K53x bCkt8XBdVT3a2elmnMLldks8bOHZ2g878o1d+xUKvu18IaeEe2XLm1JpTo/veQ3gF3 tD3YJWMDQBW/XEvCE6nlcQmXLqo0NJPl7dTdBxk8rVwZA8N5QGicyZL0TlyzUZXcto TJOnsN14iddxQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 2/4] rust: io: Add `RegisterArrayLoc::index` Reply-To: sashiko-reviews@lists.linux.dev To: "Markus Probst" Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, lee@kernel.org, ojeda@kernel.org, gary@garyguo.net In-Reply-To: <20261204-synology_disk_leds-v2-2-12815785ff8b@posteo.de> References: <20261204-synology_disk_leds-v2-0-12815785ff8b@posteo.de> <20261204-synology_disk_leds-v2-2-12815785ff8b@posteo.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 12:30:55 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] rust: io: missing #[inline] attribute on RegisterArrayLoc::index() - [Low] rust: io: commit message lacks motivation for RegisterArrayLoc::index() -- commit 24b30809d05fdd14bb53e8158bd023ab029e6ae1 Author: Markus Probst > rust: io: Add `RegisterArrayLoc::index` > > Add function to access index of `RegisterArrayLoc`. > > Signed-off-by: Markus Probst [Severity: Low] Could the commit message briefly explain why RegisterArrayLoc::index() is being added? Right now the body only restates the subject, and since this introduces a new public method with no callers in this patch, some context on the intended use case would help reviewers. > diff --git a/rust/kernel/io/register.rs b/rust/kernel/io/register.rs > index b6513fa0f412c..c4f7be770dcb8 100644 > --- a/rust/kernel/io/register.rs > +++ b/rust/kernel/io/register.rs > @@ -192,6 +192,11 @@ pub fn try_new(idx: usize) -> Option { > None > } > } > + > + /// Returns the array position. > + pub const fn index(self) -> usize { > + self.0 > + } > } [Severity: Low] Should RegisterArrayLoc::index() be marked #[inline]? Small functions in kernel abstractions are expected to carry #[inline], matching sibling accessors like OffsetLoc::const_offset() in the same file. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-synology_d= isk_leds-v2-0-12815785ff8b@posteo.de?part=3D2