From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 057C460A2608 for ; Tue, 17 Nov 2026 14:23:21 +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=Ms4TEX+3 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3AF5510E8F2; Tue, 17 Nov 2026 14:23:15 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3461210E8F2 for ; Tue, 17 Nov 2026 14:23:09 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id B153441999; Tue, 17 Nov 2026 14:23:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87E9B1F000C8; Tue, 17 Nov 2026 14:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794925388; bh=1v3XDaIPsn+JJltQ44/B7GYW4pMWHo/jyhLjp2tXhpU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Ms4TEX+35GlVZDWxtFrKHXCEGtiwtf31X5SUg8Rgxfe9VPX1jDQW0/Og//0X0wDmk I9MBNEYvG3eyERN88hZmPsTUdvizD6YaKHRnRh7ce3+vpkmakqbx2/k1M3K8WPtlAM d55iB8zUE+ZCUuKf409Cqx9uTzXVD3rBgWL9o9jOCKYNH1qZ/qpDDYdJj8vzeVUGfN 8rjbHYLe1Ak0daACyU18m/Cqw+KrkKBXBwPxXxcFQfKm5jRz6fmZ5nHp5wqFQaVNF5 ZNohBWGVtYRBmBA1kLVGKZhNDZPJTdLoDa4ocqQt5LtsXYH1lLrakqxKTEFzfSRGG5 vTlyhXL4TjQ+A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v22 5/5] rust: Add `OwnableIntoShared` and `OwnableTryFromShared` To: "Andreas Hindborg" , "Danilo Krummrich" , "Lorenzo Stoakes" , "Vlastimil Babka" , "Liam R. Howlett" , "Uladzislau Rezki" , "Miguel Ojeda" , "Boqun Feng" , "Gary Guo" , =?utf-8?b?QmrDtnJuIFJveSBCYXJvbg==?= , "Benno Lossin" , "Alice Ryhl" , "Trevor Gross" , "Daniel Almeida" , "Tamir Duberstein" , "Alexandre Courbot" , =?utf-8?b?T251ciDDlnprYW4=?= , "Lyude Paul" , "Greg Kroah-Hartman" , "Christian Brauner" , "Rafael J. Wysocki" , "Dave Ertman" , "Leon Romanovsky" , "Paul Moore" , "Serge Hallyn" , "David Airlie" , "Simona Vetter" , "Alexander Viro" , "Jan Kara" , "Igor Korotin" , "Viresh Kumar" , "Nishanth Menon" , "Stephen Boyd" , "Bjorn Helgaas" , =?utf-8?b?S3J6eXN6dG9mIFdpbGN6ecWEc2tp?= , "Pavel Tikhomirov" , "Michal Wilczynski" , "Ira Weiny" , "Matthew Brost" , =?utf-8?b?VGhvbWFzIEhlbGxzdHLDtm0=?= , "Johan Hovold" , "Sumit Semwal" , =?utf-8?b?Q2hyaXN0aWFuIEvDtm5pZw==?= , "Dave Jiang" , "Jason Gunthorpe" , "Saeed Mahameed" , "Zhi Wang" , "Jonathan Cameron" , "Markus Probst" Cc: "Philipp Stanner" , linux-mm@kvack.org, linux-security-module@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, linux-usb@vger.kernel.org, linux-serial@vger.kernel.org, "Oliver Mangold" , media-ci@linuxtv.org In-Reply-To: <20261116-unique-ref-v22-5-12029383206d@kernel.org> References: <20261116-unique-ref-v22-0-12029383206d@kernel.org> <20261116-unique-ref-v22-5-12029383206d@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 17 Nov 2026 14:23:02 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] rust: separate use blocks instead of single vertical import block -- commit eb9ded53e4184ea08932194e99ba6dc1bce8d3eb Author: Oliver Mangold rust: Add `OwnableIntoShared` and `OwnableTryFromShared` This commit introduces the OwnableIntoShared and OwnableTryFromShared traits to support converting between Owned and ARef. > diff --git a/rust/kernel/owned.rs b/rust/kernel/owned.rs > index bfc52bc7f6451..5b71d264477ef 100644 > --- a/rust/kernel/owned.rs > +++ b/rust/kernel/owned.rs > @@ -14,6 +14,10 @@ > pin::Pin, > ptr::NonNull, // > }; > +use kernel::{ > + sync::aref::ARef, > + types::RefCounted, // > +}; > =20 > use kernel::types::ForeignOwnable; [ ... ] > diff --git a/rust/kernel/sync/aref.rs b/rust/kernel/sync/aref.rs > index 6bc58aae38ed9..8a029d124fa31 100644 > --- a/rust/kernel/sync/aref.rs > +++ b/rust/kernel/sync/aref.rs > @@ -23,6 +23,10 @@ > ops::Deref, > ptr::NonNull, // > }; > +use kernel::types::{ > + OwnableIntoShared, > + Owned, // > +}; > =20 > use crate::{ > prelude::*, [Severity: Low] This isn't a bug, but both files add a separate use block instead of merging the new imports into the existing kernel/crate vertical import blocks (grouping ForeignOwnable with RefCounted in owned.rs, and OwnableIntoShared and Owned under crate::types in aref.rs). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261116-unique-ref= -v22-0-12029383206d@kernel.org?part=3D5