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 A8ADB191F91; Mon, 20 Oct 2025 10:13:31 +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=1760955211; cv=none; b=jT/tF4Dhk3GvIn5046TXYICczxkd9YYBRGwRroeKJYjNLCq1DnRL9L3PViC8UBSCkIhmWp0Ms3+supe6NfXkfAsd6osxsyLVpWJrszqpIgBbnIDA6D9YElMAgPvTlKY6qXzPokQr9RkvJZlMrQMVmOspnN/O4GnRpkC3y4DyFnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760955211; c=relaxed/simple; bh=MfxJouz/1s/HQ9XACEExFeHjaUCFWc22PevzBiJAZKg=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=U/GgppkUfSHlaE7ke90nRXEG7Uw/OCiv8/AyXtElxEgqTfpuFJ5OStvTjgUkNj9pFcbAuVT7MYBMhnkt8Q07VItCpwQsF6n6zL5EeUBYKJ0iq7T3VUHxEE9tuGVCrPWs3xoS/J3Phfkx1yNNM+Z/a5Ls+pUUVANYav086VjIYQ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A3VT5mh1; 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="A3VT5mh1" 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== 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: 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: 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.