]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: module: add type `LocalModule`
authorDanilo Krummrich <dakr@kernel.org>
Thu, 6 Mar 2025 22:23:27 +0000 (23:23 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Sun, 9 Mar 2025 18:21:08 +0000 (19:21 +0100)
commitd4245284c8c915107f003a15a20b9abfd40be3ff
treef5d3d3a2ffe82987832f5f260fcb02d00a8734e1
parent7eb172143d5508b4da468ed59ee857c6e5e01da6
rust: module: add type `LocalModule`

The `LocalModule` type is the type of the module created by `module!`,
`module_pci_driver!`, `module_platform_driver!`, etc.

Since the exact type of the module is sometimes generated on the fly by
the listed macros, provide an alias.

This is first used by the `module_firmware!` macro.

Acked-by: Miguel Ojeda <ojeda@kernel.org>
Suggested-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250306222336.23482-2-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/macros/module.rs