summaryrefslogtreecommitdiffstats
path: root/rust/exports.c
diff options
context:
space:
mode:
authorAsahi Lina <lina@asahilina.net>2023-03-23 21:35:10 +0900
committerMiguel Ojeda <ojeda@kernel.org>2023-04-10 23:55:43 +0200
commit39867fec2855cf37e5542dc6a972bce8ee191a9c (patch)
treeaee40218f3005238c7a9eb71de95ff307b95e4b9 /rust/exports.c
parent318c3cc8e107c2b36108132057ca90d0d56d1bd9 (diff)
downloadlinux-39867fec2855cf37e5542dc6a972bce8ee191a9c.tar.gz
linux-39867fec2855cf37e5542dc6a972bce8ee191a9c.tar.bz2
linux-39867fec2855cf37e5542dc6a972bce8ee191a9c.zip
rust: macros: Allow specifying multiple module aliases
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@kernel.org> Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Co-developed-by: Finn Behrens <me@kloenk.dev> Signed-off-by: Finn Behrens <me@kloenk.dev> Co-developed-by: Sumera Priyadarsini <sylphrenadin@gmail.com> Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com> Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> Signed-off-by: Asahi Lina <lina@asahilina.net> Link: https://lore.kernel.org/r/20230224-rust-macros-v2-1-7396e8b7018d@asahilina.net Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/exports.c')
0 files changed, 0 insertions, 0 deletions