Joel Fernandes
2025-Nov-05 22:42 UTC
[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 at nvidia.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