[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DBUJTTW31QCI.9EJMRC5RPYLK@kernel.org>
Date: Tue, 05 Aug 2025 16:03:50 +0200
From: "Danilo Krummrich" <dakr@...nel.org>
To: "Andrew Lunn" <andrew@...n.ch>
Cc: "FUJITA Tomonori" <fujita.tomonori@...il.com>,
<linux-kernel@...r.kernel.org>, <daniel.almeida@...labora.com>,
<rust-for-linux@...r.kernel.org>, <netdev@...r.kernel.org>,
<hkallweit1@...il.com>, <tmgross@...ch.edu>, <ojeda@...nel.org>,
<alex.gaynor@...il.com>, <gary@...yguo.net>, <bjorn3_gh@...tonmail.com>,
<benno.lossin@...ton.me>, <a.hindborg@...sung.com>, <aliceryhl@...gle.com>,
<anna-maria@...utronix.de>, <frederic@...nel.org>, <tglx@...utronix.de>,
<arnd@...db.de>, <jstultz@...gle.com>, <sboyd@...nel.org>,
<mingo@...hat.com>, <peterz@...radead.org>, <juri.lelli@...hat.com>,
<vincent.guittot@...aro.org>, <dietmar.eggemann@....com>,
<rostedt@...dmis.org>, <bsegall@...gle.com>, <mgorman@...e.de>,
<vschneid@...hat.com>, <tgunders@...hat.com>, <me@...enk.dev>,
<david.laight.linux@...il.com>
Subject: Re: [PATCH v11 7/8] rust: Add read_poll_timeout functions
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
Powered by blists - more mailing lists