Re: [PATCH -next v7 1/2] rust: clist: Add support to interface with C linked lists

From: Danilo Krummrich

Date: Fri Feb 06 2026 - 10:54:23 EST


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.

>> +
>> config GPU_BUDDY
>> bool
>> + select RUST_CLIST if RUST

If we will have a Kconfig for this, this belongs in the GPU buddy patch.

>> help
>> A page based buddy allocator for GPU memory.