From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E034B3D47D5; Thu, 19 Mar 2026 12:51:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773924717; cv=none; b=b1HlaRSivUXfpSTqKeZV9LEW5VeZYETxbge3Xca2m+/BZWMjEQ3bEqzNNzW3j8CKVibVCDlF47s0wjVBBABmO6ztStMBapXlahr17ZFZ0eKdxWKcFiJRmBFFWlO8K5P25JJ4ahsbiiNaHje6QJLNq0qjH3FAsFWW4HqGkhT/oXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773924717; c=relaxed/simple; bh=3JCTw3yQAwzCC0Z3TnAOJaa/wbUuhF+28P/bEaMtvTE=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=tltt6mrlRvsjQ4XMJbpD4Wm7yuuKhscJME6wkZTVsdnPgJ5yxHE+rVc96atmK7iqhgb91lNRdoIywi936SMdQtYKY1rLDlcXZQ5oPbHWSO6+4by+tJMq754zCrx0DvXblWKGttUZ6uscZ3J2fsfSc/q9Dm/gssQnRZs1uaERkJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Hf//2PEA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Hf//2PEA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5658FC19424; Thu, 19 Mar 2026 12:51:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773924716; bh=3JCTw3yQAwzCC0Z3TnAOJaa/wbUuhF+28P/bEaMtvTE=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=Hf//2PEAF/nTtwZm3T755K9b8oQH3665Q3VRMD0anzbF5f/txUtpJpFzzhUkQMfOt FQWI52Rbq3mC7VdKFHs7fMygfOLftFbHThZWxpprlHYTb7nZ6FhYkz/r4PZ1OycQcb tGiztUO5ANyUu1kXN8Nk3Kj/PHNaVdoPFrEfiEBsN6i2m2I5GJLFMvGpWnw+DRPEpJ WAhMljp9unXDJzqcqcpnkk2nxiSEJyYw/n/oTEUgDwu6RdQdJAw5/9QniNKvKBLVv/ A8L+7NPsxPo5L0gFrt1+tZyQ7vaGw0H0i8S1Ip0HYppZ6O5xbm2Orbl1CqmW95r87/ YOsyLjMmc/VtQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 19 Mar 2026 13:51:44 +0100 Message-Id: Subject: Re: [PATCH v13 1/1] rust: interop: Add list module for C linked list interface Cc: "Joel Fernandes" , , "Miguel Ojeda" , "Boqun Feng" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Alex Gaynor" , "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" , =?utf-8?q?Christian_K=C3=B6nig?= , "Jani Nikula" , "Joonas Lahtinen" , "Rodrigo Vivi" , "Tvrtko Ursulin" , "Huang Rui" , "Matthew Auld" , "Matthew Brost" , "Lucas De Marchi" , =?utf-8?q?Thomas_Hellstr=C3=B6m?= , "Helge Deller" , "John Hubbard" , "Alistair Popple" , "Timur Tabi" , "Edwin Peer" , "Andrea Righi" , "Andy Ritger" , "Zhi Wang" , "Balbir Singh" , , "Eliot Courtney" , , , , , , , To: "Gary Guo" From: "Danilo Krummrich" References: <20260317201710.934932-1-joelagnelf@nvidia.com> <20260317201710.934932-2-joelagnelf@nvidia.com> In-Reply-To: On Thu Mar 19, 2026 at 1:21 PM CET, Gary Guo wrote: > If there're cases where we do want to justify unsafe code that's not imme= diately > deferring to the user inside the macro, we could use the SAFETY* trick pr= oposed > in the thread, without writing an actual `unsafe {}` block. Works for me -- if this is what we want to do in such cases, we should prob= ably document it somewhere in the coding guidelines.