diff options
author | 2025-03-13 06:03:43 +1000 | |
---|---|---|
committer | 2025-03-13 06:03:55 +1000 | |
commit | 4e64a62032ac41e42457870c59a3c7985d594a0e (patch) | |
tree | 9cba218f63e028836ef1952b0510457388d707af /rust/macros | |
parent | Backmerge tag 'v6.14-rc6' into drm-next (diff) | |
parent | gpu: nova-core: add initial documentation (diff) | |
download | wireguard-linux-4e64a62032ac41e42457870c59a3c7985d594a0e.tar.xz wireguard-linux-4e64a62032ac41e42457870c59a3c7985d594a0e.zip |
Merge tag 'nova-next-6.15-2025-03-09' of gitlab.freedesktop.org:drm/nova into drm-next
Nova changes for v6.15
nova-core:
- initial skeleton driver
- documentation
- project guidelines
- task (todo) list
firmware:
- `module_firmware!` macro
- `firmware::ModInfoBuilder`
Rust:
- `LocalModule` type alias
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Danilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/Z84dHHEn6xfvlRxk@cassiopeiae
Diffstat (limited to 'rust/macros')
-rw-r--r-- | rust/macros/module.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/macros/module.rs b/rust/macros/module.rs index cdf94f4982df..110e59c64197 100644 --- a/rust/macros/module.rs +++ b/rust/macros/module.rs @@ -228,6 +228,10 @@ pub(crate) fn module(ts: TokenStream) -> TokenStream { kernel::ThisModule::from_ptr(core::ptr::null_mut()) }}; + /// The `LocalModule` type is the type of the module created by `module!`, + /// `module_pci_driver!`, `module_platform_driver!`, etc. + type LocalModule = {type_}; + impl kernel::ModuleMetadata for {type_} {{ const NAME: &'static kernel::str::CStr = kernel::c_str!(\"{name}\"); }} |