Re: rust compile failure in next-20260730
From: Vlastimil Babka (SUSE)
Date: Mon Aug 03 2026 - 12:05:39 EST
On 8/3/26 16:23, Boqun Feng wrote:
> On Mon, Aug 03, 2026 at 02:57:49PM +0100, Gary Guo wrote:
>>
>> We could also unconditionally use `kvfree_rcu_head` here, and
>> add
>>
>> #[cfg(not(CONFIG_KVFREE_RCU_BATCHED))]
>> pub type kvfree_rcu_head = callback_head;
>>
>> to bindings.rs?
>>
>
> This option is currently not maintainable unless it becomes a
> maintainer-aware way to handle things like this.
>
>> (Or even better, changing `#define` to `typedef` so bindgen takes care of
>> everything).
>>
>
> Yes, this is better IMO, but it's up to slab maintainers. :-)
Can you elaborate a bit please, how would that look like?
> Regards,
> Boqun
>
>> Best,
>> Gary
>>