Re: [PATCH -next v7 1/2] rust: clist: Add support to interface with C linked lists
From: Joel Fernandes
Date: Fri Feb 06 2026 - 11:06:06 EST
On 2/6/2026 10:53 AM, Danilo Krummrich wrote:
> On Fri Feb 6, 2026 at 4:25 PM CET, Gary Guo wrote:
>> On Fri Feb 6, 2026 at 12:41 AM GMT, Joel Fernandes wrote:
>>> diff --git a/drivers/gpu/Kconfig b/drivers/gpu/Kconfig
>>> index 22dd29cd50b5..2c3dec070645 100644
>>> --- a/drivers/gpu/Kconfig
>>> +++ b/drivers/gpu/Kconfig
>>> @@ -1,7 +1,14 @@
>>> # SPDX-License-Identifier: GPL-2.0
>>>
>>> +config RUST_CLIST
>>> + bool
>>> + depends on RUST
>>> + help
>>> + Rust abstraction for interfacing with C linked lists.
>>
>> I am not sure if we need extra config entry. This is fully generic so shouldn't
>> generate any code unless there is an user.
>
> I also don't think we need a Kconfig for this.
>
> In any case, it shouln't be in drivers/gpu/Kconfig.
Fair point, I believe I was having trouble compiling this into the kernel crate
without warnings (I believe if !GPU_BUDDY). I'll try to drop it and see if we
can get rid of it.
>
>>> +
>>> config GPU_BUDDY
>>> bool
>>> + select RUST_CLIST if RUST
>
> If we will have a Kconfig for this, this belongs in the GPU buddy patch.
You mean, in the GPU buddy bindings patch right? If so, yes, I will move it there.
Thanks.
--
Joel Fernandes