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 26E24CCD193 for ; Mon, 20 Oct 2025 10:13:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B763610E404; Mon, 20 Oct 2025 10:13:33 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="A3VT5mh1"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 55D2C10E404; Mon, 20 Oct 2025 10:13:32 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 963BB61D0C; Mon, 20 Oct 2025 10:13:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22E64C113D0; Mon, 20 Oct 2025 10:13:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760955211; bh=MfxJouz/1s/HQ9XACEExFeHjaUCFWc22PevzBiJAZKg=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=A3VT5mh1lThYKr2EZVY1Llk/2Tn090PKGz1/IKdZ3R9zR65yFw0aGoklyyv/AyHIA iHir/QFTDnPdkSJvlneLGBUKFl+WTcZnDFFlxnw71lF6mJl8Id6qWIFzhKfDPAkSMl Vo/WcCP4QMarxCJ0GQJOm2BvLD07DGiBCPYPdELwFMt2TUOT9d9vg69x7d9E/w3ZXg x4Elv5zrnMvV9c3b54aC7BZ4Jml/XolDUPw2kbzdJ51YMtcGeaP1y9LFNzmy++Tbd/ nHByJuifTUWv7WPBuUKFa/EjEr/8l+wj8biLKLW7uyb0U3MGf7kpSF05JPZ2u/+Az8 6sPL8+DqrqlWw== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 20 Oct 2025 12:13:25 +0200 Message-Id: Subject: Re: [PATCH v5 03/14] gpu: nova-core: gsp: Create wpr metadata Cc: "Alistair Popple" , , , "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "David Airlie" , "Simona Vetter" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "John Hubbard" , "Joel Fernandes" , "Timur Tabi" , , To: "Alexandre Courbot" From: "Danilo Krummrich" References: <20251013062041.1639529-1-apopple@nvidia.com> <20251013062041.1639529-4-apopple@nvidia.com> In-Reply-To: X-BeenThere: nouveau@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Nouveau development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces@lists.freedesktop.org Sender: "Nouveau" On Mon Oct 20, 2025 at 7:40 AM CEST, Alexandre Courbot wrote: > The alternative would be to have const functions like `usize_to_u64`. It > doesn't look as smooth as the extention trait, but can be used in const > contexts. That's what I thought of, exactly for the reason of being usable in const contexts (at least for a quick fix in nova-core). Whether we want an extention trait and a separate temporary const_usize_to_= u64() etc. can be discussed in the context of making it common infrastructure.