Re: [PATCH v2 0/2] rust: Add abstractions for applying devicetree overlays

From: Miguel Ojeda
Date: Sat Aug 16 2025 - 08:44:36 EST


On Sat, Aug 16, 2025 at 7:58 AM Ayush Singh <ayush@xxxxxxxxxxxxxxx> wrote:
>
> The kernel header currently seems to provide blank implementations of
> these methods when `CONFIG_OF_OVERLAY` is not enabled. But I am not sure
> what is rust-for-linux policy here.

In general, if a kernel feature/API has stubs that do nothing when not
configured, i.e. the API is always present (typically to simplify
callers), then it is likely the Rust side should also be available
unconditionally for similar reasons. We had a similar discussion
around debugfs recently.

Cheers,
Miguel