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 50AC11090223 for ; Thu, 19 Mar 2026 12:52:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 89AA810EA07; Thu, 19 Mar 2026 12:51:58 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="Hf//2PEA"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8038510E4D1; Thu, 19 Mar 2026 12:51:57 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id CAC804459C; Thu, 19 Mar 2026 12:51:56 +0000 (UTC) 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== 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: 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 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.