Re: [PATCH v2] rust: macros: Allow specifying multiple module aliases

From: Miguel Ojeda
Date: Sun Apr 09 2023 - 23:44:13 EST


On Thu, Mar 23, 2023 at 1:35 PM Asahi Lina <lina@xxxxxxxxxxxxx> wrote:
>
> Modules can (and usually do) have multiple alias tags, in order to
> specify multiple possible device matches for autoloading. Allow this by
> changing the alias ModuleInfo field to an Option<Vec<String>>.
>
> Note: For normal device IDs this is autogenerated by modpost (which is
> not properly integrated with Rust support yet), so it is useful to be
> able to manually add device match aliases for now, and should still be
> useful in the future for corner cases that modpost does not handle.
>
> This pulls in the expect_group() helper from the rfl/rust branch
> (with credit to authors).

Applied to `rust-next`. Thanks!

Cheers,
Miguel