Re: [PATCH v11 7/8] rust: Add read_poll_timeout functions

Danilo Krummrich
2025-08-05T14:03:58Z

On Tue Aug 5, 2025 at 3:53 PM CEST, Andrew Lunn wrote:
>> I also prefer the example that can be compiled however I can't think
>> of a compilable example that is similar to actual use cases (for
>> example, waiting for some hardware condition). Do you have any ideas?
>
> Does it have to be successfully runnable? Just read from address
> 0x42. If it actually gets run, it will trigger an Opps, but it should
> be obvious why.

No, we have all three options.

(1) Don't do anything with the code.
(2) Compile it, but don't run it.
(3) Compile it and run it as kunit test.

In this case we want to compile it, but not actually run it.

- Danilo