From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7E6D1103E16F for ; Wed, 18 Mar 2026 12:46:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F33AA10E357; Wed, 18 Mar 2026 12:46:49 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="AdFXKhWb"; dkim-atps=neutral Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) by gabe.freedesktop.org (Postfix) with ESMTPS id A2AE310E774 for ; Wed, 18 Mar 2026 08:59:06 +0000 (UTC) Received: by mail-wr1-f73.google.com with SMTP id ffacd0b85a97d-43b4085da48so2904047f8f.2 for ; Wed, 18 Mar 2026 01:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1773824345; x=1774429145; darn=lists.freedesktop.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=MXY9EHBXCnPWVfnYnREpBujBITTjaoQ0F5qTzNSzUus=; b=AdFXKhWbzkC/P817pKAHLvAFJFesMoJvZ6h/nH+QUkSIxbKYNe61F/ZctegLuzcC3s G9kENx49LoQ8X7AJnMlIN/HkepXTElQDuybO69SK4QlStqtJ/Z7fK/eD++u9/4USNR1Q KzHRdBmKmr6aOlD1HdiZGsW4+DkrPcd76+Rk+jn25js/y5pxkE9I5BLYjdNnfNHf5kqJ wVGwcWtc8vUXLYnxQTG7DeEZa7MVwHSpfRAQwovjjHfRfZNOusOliqfICJtt2fvD5aJE J1TjfeGrEPXDPZPqLJCzJbj4ckHZ8AcMQMlxMr2bKdxhKUjc8Iziuw9LOnkK0TFTw6rS XLWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773824345; x=1774429145; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MXY9EHBXCnPWVfnYnREpBujBITTjaoQ0F5qTzNSzUus=; b=kb2oJmF/PlHyh+PfeqgWR0lcduBC1AGOxYzzPeH94VPYoNpl1sXyOZjDQW3vTLkMtG QJUkYBCCHzvZUp5uoBg5wRrJxXktlKQGZs0GzYYJ+meKbL4XnRKeixktONhrqSUHB3FC hl9jO7YvjiTeRG1FHvPL3tTiwNh89xw+pZryRsW2CDq5gAw2b61v6rEpDUmpPuJgxmTD 0/SawnLTpCbpSt+X6x995FYpsCDiEH2wLWiyctueeZKX0I21qauKOnH0eXeDpEqASM6E hBHdJ6WzHBK9Yo8hYxr6PqDvrq/UedeFTHc8OruL3lISMYnOxvTqesTVlpUeg9WJXGLv 8jeg== X-Forwarded-Encrypted: i=1; AJvYcCXxhXWAugN0yV8QEjq634FblXxgCIk5z4WMzwDTArejQjj9Rr0WydLHupbE3/UjBn8SWCEF8+Vf@lists.freedesktop.org X-Gm-Message-State: AOJu0YwTG/vLOPCTdq8Ei1iJ8OEfdA1f9RCh8Uo50itBfK0GX1TJRNVz YAke70YHo6s1HesQVxJd3uu0BcXiQEbyfmX/76YvlrJGNDV+x1Q7NHVG1TsVzVoSC9wQMEcKP38 rTguiDJLGL7vjIsiJcg== X-Received: from wmqe14.prod.google.com ([2002:a05:600c:4e4e:b0:485:3539:bc05]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:a20b:b0:485:3bb5:92cf with SMTP id 5b1f17b1804b1-486f4422300mr29381305e9.12.1773824344660; Wed, 18 Mar 2026 01:59:04 -0700 (PDT) Date: Wed, 18 Mar 2026 08:59:03 +0000 In-Reply-To: <46986da6-8c89-475c-8561-964adaa7d034@nvidia.com> Mime-Version: 1.0 References: <20260317201710.934932-1-joelagnelf@nvidia.com> <20260317201710.934932-2-joelagnelf@nvidia.com> <46986da6-8c89-475c-8561-964adaa7d034@nvidia.com> Message-ID: Subject: Re: [PATCH v13 1/1] rust: interop: Add list module for C linked list interface From: Alice Ryhl To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, Miguel Ojeda , Boqun Feng , Gary Guo , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , Alex Gaynor , Danilo Krummrich , Dave Airlie , David Airlie , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Simona Vetter , Daniel Almeida , Koen Koning , Nikola Djukic , Alexandre Courbot , Philipp Stanner , Elle Rhumsaa , Jonathan Corbet , Alex Deucher , "Christian =?utf-8?B?S8O2bmln?=" , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Huang Rui , Matthew Auld , Matthew Brost , Lucas De Marchi , "Thomas =?utf-8?Q?Hellstr=C3=B6m?=" , Helge Deller , John Hubbard , Alistair Popple , Timur Tabi , Edwin Peer , Andrea Righi , Andy Ritger , Zhi Wang , Balbir Singh , alexeyi@nvidia.com, Eliot Courtney , dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-fbdev@vger.kernel.org Content-Type: text/plain; charset="utf-8" X-Mailman-Approved-At: Wed, 18 Mar 2026 12:46:48 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Tue, Mar 17, 2026 at 04:18:46PM -0400, Joel Fernandes wrote: > > > On 3/17/2026 4:17 PM, Joel Fernandes wrote: > > Add a new module `kernel::interop::list` for working with C's doubly > > circular linked lists. Provide low-level iteration over list nodes. > > > > Typed iteration over actual items is provided with a `clist_create` > > macro to assist in creation of the `CList` type. > > > > Cc: Nikola Djukic > > Reviewed-by: Daniel Almeida > > Reviewed-by: Alexandre Courbot > > Acked-by: Alexandre Courbot > > Acked-by: Gary Guo > > Acked-by: Miguel Ojeda > > Signed-off-by: Joel Fernandes > > --- > > MAINTAINERS | 8 + > > rust/helpers/helpers.c | 1 + > > rust/helpers/list.c | 17 ++ > > rust/kernel/interop.rs | 9 + > > rust/kernel/interop/list.rs | 342 ++++++++++++++++++++++++++++++++++++ > > rust/kernel/lib.rs | 2 + > > 6 files changed, 379 insertions(+) > > create mode 100644 rust/helpers/list.c > > create mode 100644 rust/kernel/interop.rs > > create mode 100644 rust/kernel/interop/list.rs > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 4bd6b538a51f..e847099efcc2 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -23251,6 +23251,14 @@ T: git https://github.com/Rust-for-Linux/linux.git alloc-next > > F: rust/kernel/alloc.rs > > F: rust/kernel/alloc/ > > > > +RUST [INTEROP] > > +M: Joel Fernandes > > +M: Alexandre Courbot > > +L: rust-for-linux@vger.kernel.org > > +S: Maintained > > +T: git https://github.com/Rust-for-Linux/linux.git interop-next > > +F: rust/kernel/interop/ > > Sorry, I forgot to add an additional F: for the rust/kernel/interop.rs file. > Danilo/Miguel, do you mind adding this when applying? I think you should consider a mod.rs file to avoid this. It's tiny, and just re-exports submodules, so I don't think the "mod.rs name in file view" concern is that big, and IMO having files related to interop/ inside the directory is much better than having them outside. Alice