]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: macros: allow arbitrary types to be used in `module!` macro
authorGary Guo <gary@garyguo.net>
Mon, 12 Jan 2026 17:07:20 +0000 (17:07 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 28 Jan 2026 12:44:17 +0000 (13:44 +0100)
commit3d5731a6be6a43d8c90d766e1404502c44545241
treec258b9655f466118c5d78649bd6b0422b17a0362
parentc3b416e19eb38a6b8d9a30bc7df1361ac3244464
rust: macros: allow arbitrary types to be used in `module!` macro

Previously this only accepts an identifier, but now with `syn` it is
easy to make it accepts any type.

Reviewed-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260112170919.1888584-10-gary@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/macros/module.rs