[PATCH v1] rust: bug: fix warn_on macro build error on UML
FUJITA Tomonori
tomo at flapping.org
Fri Aug 7 04:19:19 PDT 2026
On Fri, 7 Aug 2026 08:52:38 +0200
Miguel Ojeda <miguel.ojeda.sandonis at gmail.com> wrote:
> On Sat, Aug 1, 2026 at 5:41 AM FUJITA Tomonori <tomo at flapping.org> wrote:
>>
>> Use the free function `as_char_ptr_in_const_context()` instead, as other exported macros already do.
>
> I reproduced this and the fix works -- thanks Tomonori!
>
> Do we need to use the free function? i.e. this is not a const context,
> so should we do e.g.
>
> $crate::str::CStrExt::as_char_ptr
>
> ?
Thanks, you are right. I'll send v2 shortly.
> Also:
>
> Cc: stable at vger.kernel.org
Ok.
More information about the linux-um
mailing list