Re: [PATCH v9 00/10] rust: add `register!` macro

Danilo Krummrich
2026-03-17T19:33:12Z

On Sun Mar 15, 2026 at 1:57 AM CET, Danilo Krummrich wrote:
> On Sat Mar 14, 2026 at 2:06 AM CET, Alexandre Courbot wrote:
>
> I've now picked this up in the topic/io topic branch [1]; it will soon be merged
> into driver-core-next and drm-rust-next, thanks!

Now in both driver-core-next and drm-rust-next -- great work Alex, thanks!

>> 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
>
> [ Fix incorrect reference to io_addr_assert() in try_update(). - Danilo ]
>
>> rust: io: use generic read/write accessors for primitive accesses
>
> [ Slightly improve wording in doc-comment. - Danilo ]
>
>> rust: io: add `register!` macro
>
> [ * Improve wording and formatting of doc-comments,
> * Import build_assert!(),
> * Add missing inline annotations,
> * Call static_assert!() with absolute path,
> * Use expect instead of allow.
>
> - Danilo ]
>
>> rust: io: introduce `write_reg` and `LocatedRegister`
>
> [ Replace FIFO with VERSION register in the examples. - Danilo ]
>
>> sample: rust: pci: use `register!` macro
>
> [ Fix up kernel import style. - Danilo ]