Re: [PATCH v8 00/10] rust: add `register!` macro
From: Danilo Krummrich
Date: Wed Mar 11 2026 - 09:38:35 EST
On Wed Mar 11, 2026 at 2:35 PM CET, Alexandre Courbot wrote:
> On Wed Mar 11, 2026 at 10:07 PM JST, Danilo Krummrich wrote:
>> On Wed Mar 11, 2026 at 2:01 PM CET, Alexandre Courbot wrote:
>>> On Wed Mar 11, 2026 at 2:20 AM JST, Danilo Krummrich wrote:
>>>> On Mon Mar 9, 2026 at 4:13 PM CET, Alexandre Courbot wrote:
>>>>> Alexandre Courbot (10):
>>>>> rust: enable the `generic_arg_infer` feature
>>>>> rust: num: add `shr` and `shl` methods to `Bounded`
>>>>> rust: num: add `into_bool` method to `Bounded`
>>>>> rust: num: make Bounded::get const
>>>>> rust: io: add IoLoc type and generic I/O accessors
>>>>> rust: io: use generic read/write accessors for primitive accesses
>>>>> rust: io: introduce `IntoIoVal` trait and single-argument `write_val`
>>>>> rust: io: add `register!` macro
>>>>> sample: rust: pci: use `register!` macro
>>>>> [FOR REFERENCE] gpu: nova-core: use the kernel `register!` macro
>>>>
>>>> I did not look into the root cause, but fetching this patch series my build
>>>> fails due to a build_assert!(). Maybe you have CONFIG_RUST_BUILD_ASSERT_ALLOW
>>>> enabled?
>>>
>>> Nope, it is disabled and I build with Clippy so I am surprised you are
>>> getting this. Do you know which module is failing?
>>
>> ERROR: modpost: "rust_build_error" [drivers/gpu/nova-core/nova_core.ko] undefined!
>
> Does it happen with the exact branch I posted?
Yup, my HEAD is at commit 5c558172827e ("[FOR REFERENCE] gpu: nova-core: use the
kernel `register!` macro").