Re: [PATCH v8 6/7] rust: Add read_poll_timeout functions
From: FUJITA Tomonori
Date: Thu Jan 16 2025 - 06:49:46 EST
On Thu, 16 Jan 2025 12:42:57 +0100
Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>> If so, rather than adding a Rust-specific helper function to the C
>> side, it would be better to solve the problem on the Rust side like
>> the previous versions with c_str()! and file()! for now?
>
> I would be okay with a scenario where older compilers just reference
> the read_poll_timeout() function in the error message, and only newer
> compilers reference the location of the caller. Of course, right now,
> only older compilers exist. But if we don't get nul-terminated
> location strings, then I do think we should make the change you're
> currently making.
Okay, let's see if we can get ACK from the scheduler maintainers with
your version, which has less impact on the C code.