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

From: Vincenzo Palazzo
Date: Wed Mar 01 2023 - 12:19:53 EST


> 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).
>
> Co-developed-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
> Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
> Co-developed-by: Finn Behrens <me@xxxxxxxxxx>
> Signed-off-by: Finn Behrens <me@xxxxxxxxxx>
> Co-developed-by: Sumera Priyadarsini <sylphrenadin@xxxxxxxxx>
> Signed-off-by: Sumera Priyadarsini <sylphrenadin@xxxxxxxxx>
> Signed-off-by: Asahi Lina <lina@xxxxxxxxxxxxx>
> ---

Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@xxxxxxxxx>