[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b3a8e750-1991-494b-828a-59c377953870@nvidia.com>
Date: Wed, 5 Nov 2025 17:42:50 -0500
From: Joel Fernandes <joelagnelf@...dia.com>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Cc: Alexandre Courbot <acourbot@...dia.com>, linux-kernel@...r.kernel.org,
rust-for-linux@...r.kernel.org, dri-devel@...ts.freedesktop.org,
dakr@...nel.org, David Airlie <airlied@...il.com>,
Alistair Popple <apopple@...dia.com>, Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>, bjorn3_gh@...tonmail.com,
Benno Lossin <lossin@...nel.org>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Simona Vetter <simona@...ll.ch>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
John Hubbard <jhubbard@...dia.com>, Timur Tabi <ttabi@...dia.com>,
joel@...lfernandes.org, Elle Rhumsaa <elle@...thered-steel.dev>,
Daniel Almeida <daniel.almeida@...labora.com>,
Andrea Righi <arighi@...dia.com>, Philipp Stanner <phasta@...nel.org>,
nouveau@...ts.freedesktop.org,
Nouveau <nouveau-bounces@...ts.freedesktop.org>
Subject: Re: [PATCH RFC 1/4] rust: clist: Add abstraction for iterating over C
linked lists
On 11/4/2025 8:52 AM, Miguel Ojeda wrote:
> On Tue, Nov 4, 2025 at 1:58 AM Joel Fernandes <joelagnelf@...dia.com> wrote:
>>
>> Perhaps wrapping it is #cfg is sufficient.
>
> `cfg` attributes and the `cfg!` macro should work in doctests -- we
> have already a few instances, e.g. this hidden one:
>
> /// ```
> /// # #![cfg(CONFIG_OF)]
> /// use kernel::clk::Hertz;
Thanks for the example! I will guard it accordingly in my next posting.
- Joel
Powered by blists - more mailing lists