diff options
| author | Aswin Unnikrishnan <[email protected]> | 2024-04-19 21:50:13 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-04-25 15:34:33 +0000 |
| commit | 19843452dca40e28d6d3f4793d998b681d505c7f (patch) | |
| tree | d1758b94e8d6b35330c209d28177021df7a3144e /rust/macros/lib.rs | |
| parent | kbuild: rust: force `alloc` extern to allow "empty" Rust files (diff) | |
| download | kernel-19843452dca40e28d6d3f4793d998b681d505c7f.tar.gz kernel-19843452dca40e28d6d3f4793d998b681d505c7f.zip | |
rust: remove `params` from `module` macro example
Remove argument `params` from the `module` macro example, because the
macro does not currently support module parameters since it was not sent
with the initial merge.
Signed-off-by: Aswin Unnikrishnan <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Cc: [email protected]
Fixes: 1fbde52bde73 ("rust: add `macros` crate")
Link: https://lore.kernel.org/r/[email protected]
[ Reworded slightly. ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/lib.rs')
| -rw-r--r-- | rust/macros/lib.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/rust/macros/lib.rs b/rust/macros/lib.rs index f489f3157383..520eae5fd792 100644 --- a/rust/macros/lib.rs +++ b/rust/macros/lib.rs @@ -35,18 +35,6 @@ use proc_macro::TokenStream; /// author: "Rust for Linux Contributors", /// description: "My very own kernel module!", /// license: "GPL", -/// params: { -/// my_i32: i32 { -/// default: 42, -/// permissions: 0o000, -/// description: "Example of i32", -/// }, -/// writeable_i32: i32 { -/// default: 42, -/// permissions: 0o644, -/// description: "Example of i32", -/// }, -/// }, /// } /// /// struct MyModule; |
