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=1796387635; b=DDx70lmUrfKpsbH2HQFTkkpPTSjokuaqGiWFVWP3o+a9aAXLEe8S8wYU9EdQnD8onrGv DuMWx9VfJ0llFEZhmDsuby9Ey3Kx2VnY67edFqEtouNyf/ClFWM19dQhy45YmrkvlkSuq wkLwu10sogdUr99GNE/3pHrmnbqYSmB7ZQyojExiybgof9Ncl9XYRxxMtN9Fan6nOM0D6 LERncHqMdFIyjIsMQ8rLIW0E9M63ij2NHOiAQ4/D0JkYbOK3kZRSNdJWREN/pgDvEQ9bL rVYgnMUGQV2kMLEFLKtx86YP9N5dUw8OMRow96yBc6pAnst26wkKiobG4MCYwVJN4JQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387635; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=dgsI3lGXR+DwUdLT0Y8Siashyo5ldhmaupHKuLXFsiw=; b=5bydn5jaj2wUwHRUTXhpKiqwqPemqE9hHXLTmhULNthCfzbaREqdS6CEWGXL4if/pSRb T4lKj373PxTyBS/RGW4+DAjrYvL78tKaulDbGGIrvuzErt3fahlaqFv4In0WmwFveHACV 9Nwn2+U8L7QEjYjXoYoOWG9rKP5FQjz3+5mLrXlO+usmoypCuDmNrJD6luor/Ij8Wqd0L ZTURve+tpNZVcvPtd07OzOyVXzl4C0ZhAoMEKBRsMnYOQyUzemJkNg007OGYPsY3yvdFE +ChdVAPB1E7E37VKPnAy/v2VR7zVaWjuu2Uagx3EVgVww/Qq0yHimT0mihjmmB6DC0A== 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=I2522GWg; 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 7DDF2606A32C; Fri, 4 Dec 2026 12:33:55 +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=I2522GWg Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF9751F000C2; Fri, 4 Dec 2026 12:33:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796387635; bh=dgsI3lGXR+DwUdLT0Y8Siashyo5ldhmaupHKuLXFsiw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=I2522GWguieklw9C9I23ixpGXn2MTPLQDZ1N4aw15cLedYJPKp3M+BjpXCAP+94zS lXhHAzVoyi5lrGdF/sXVBz6zHpTNHR3HAPgq+k9PaaA0zHtxlkWg8TbBnE8IsCfPsI h70GUQcZnoKXdsqGyfpyfg59qWbl1DBahXUhHqB8ecaf9If/1K1cW9bRQ4rXH2GhJa a/1CQeEziX1HZGdM+joGnmB3FmFjMiCh38iXuU/jOcFoToMDF3s02lW7Q3HrCUBLd1 xvPYvbq/nrEecExwDbX4R09N62gzpG6/Xt/R/gEuyYo/zF0b0Wom0UygvQVRtmEIpu OYf98FH97lluw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 3/4] rust: io: Implement Copy for RegisterArrayLoc 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-3-12815785ff8b@posteo.de> References: <20261204-synology_disk_leds-v2-0-12815785ff8b@posteo.de> <20261204-synology_disk_leds-v2-3-12815785ff8b@posteo.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 12:33:54 +0000 X-Mailing-List: linux-leds@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 1 potential issue to consider: - [Low] rust: io: missing #[inline] on RegisterArrayLoc::clone() -- commit 0349592296d0ffae8398cc3d95e7f43776ae3bee Author: Markus Probst rust: io: Implement Copy for RegisterArrayLoc This commit manually implements Copy and Clone for RegisterArrayLoc without requiring a T: Copy bound. > diff --git a/rust/kernel/io/register.rs b/rust/kernel/io/register.rs > index c4f7be770dcb8..6381c52bd397a 100644 > --- a/rust/kernel/io/register.rs > +++ b/rust/kernel/io/register.rs > @@ -209,6 +209,14 @@ fn offset(self) -> usize { > } > } > =20 > +impl Copy for RegisterArrayLoc {} > + > +impl Clone for RegisterArrayLoc { > + fn clone(&self) -> Self { > + *self > + } > +} [Severity: Low] Should RegisterArrayLoc::clone() be marked #[inline]? Small functions in t= he kernel crate are expected to carry #[inline] so they can be inlined across crate boundaries, matching other manual Clone implementations in kernel::io such as MmioRaw::clone(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-synology_d= isk_leds-v2-0-12815785ff8b@posteo.de?part=3D3