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 29451279DC3; Fri, 27 Feb 2026 12:08:33 +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=1772194113; cv=none; b=HLyZaihayCdrhMd63xaH5+4+SdjW8v5EHi6JLR2V17Lm6ZlViupdHK03z/GqR1LoqBy7PtushA8JSGepKAsfyTuEai7X2wzXK1dEbyQ+MU2e2nza9sjSAvFhzIAO475e2w99s1lJtwUpHTqOJRCHxNu+DTwD3sjxKmRPEAb4ZTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772194113; c=relaxed/simple; bh=qAtzFvPSOXnzfEHHpuXtEDUenZLY4fuD+gHebSXsq+o=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=ir6ByfkPe2oVu6V3e/OlA7UdpJG6XGlWBCG8uB/Fs4hlwzN53TihYMVOZvGOt2oUY7voJ2m32KrdEmfOv0n333luiT6ig8mi82PAZFUooh0RA4/3zV/3gRhZpXQhSqjUYtd4pMGjJIbPZ/QNuDebLrVNOWdoSttez/sFcdC30yU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mkJy6AXe; 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="mkJy6AXe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C02C9C116C6; Fri, 27 Feb 2026 12:08:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772194113; bh=qAtzFvPSOXnzfEHHpuXtEDUenZLY4fuD+gHebSXsq+o=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=mkJy6AXeaXTGR3B/SplKCc80A9j3T4GSxAnM/FQb3BVDZ/9cRaKn+K0MNfFxKz/Le LrtgHk/QA4YaWZ0xFQkk6WEWlx05nIPIjZSUwOUhn9mE7TWheUOHKQ8IBMqSA4UM4/ aU3sXixuKTqPjhcewoGvs1a4aDQB54z8QVEVDAMemNhb6pSyUOF/DkBDZlF29HAwsw fl6tdF9JSvAWPHo4UJ5GlMtl13TfgoufVjlda4BXGleiG6TnmaL89WmgkRE3jwOztO p3srgWPCDcw5VgsHjNJtVL0PpHifRLeyRbtT1RQotg8uqPxAZpnEWZC3cyuKmm70Vo Ou45+nkvmx6Fw== 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: Fri, 27 Feb 2026 13:08:21 +0100 Message-Id: Subject: Re: [PATCH v11 4/4] rust: gpu: Add GPU buddy allocator bindings Cc: , "Miguel Ojeda" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Dave Airlie" , "Daniel Almeida" , "Koen Koning" , , , , "Nikola Djukic" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" , "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" , "Alex Gaynor" , "Boqun Feng" , "John Hubbard" , "Alistair Popple" , "Timur Tabi" , "Edwin Peer" , "Alexandre Courbot" , "Andrea Righi" , "Andy Ritger" , "Zhi Wang" , "Balbir Singh" , "Philipp Stanner" , "Elle Rhumsaa" , , "Eliot Courtney" , , , , , , To: "Joel Fernandes" From: "Danilo Krummrich" References: <20260224224005.3232841-1-joelagnelf@nvidia.com> <20260224224005.3232841-5-joelagnelf@nvidia.com> In-Reply-To: <20260224224005.3232841-5-joelagnelf@nvidia.com> On Tue Feb 24, 2026 at 11:40 PM CET, Joel Fernandes wrote: > diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs > index 58dbb02c5197..b8287601f464 100644 > --- a/rust/kernel/lib.rs > +++ b/rust/kernel/lib.rs > @@ -97,6 +97,8 @@ > pub mod firmware; > pub mod fmt; > pub mod fs; > +#[cfg(CONFIG_GPU_BUDDY)] Has to be #[cfg(CONFIG_GPU_BUDDY =3D "y")] for now. > +pub mod gpu; > #[cfg(CONFIG_I2C =3D "y")] > pub mod i2c; > pub mod id_pool; > --=20 > 2.34.1