Skip to content

Commit 1984345

Browse files
aswinunni01ojeda
authored andcommitted
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 <aswinunni01@gmail.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Cc: stable@vger.kernel.org Fixes: 1fbde52 ("rust: add `macros` crate") Link: https://lore.kernel.org/r/20240419215015.157258-1-aswinunni01@gmail.com [ Reworded slightly. ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent ded103c commit 1984345

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

rust/macros/lib.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,6 @@ use proc_macro::TokenStream;
3535
/// author: "Rust for Linux Contributors",
3636
/// description: "My very own kernel module!",
3737
/// license: "GPL",
38-
/// params: {
39-
/// my_i32: i32 {
40-
/// default: 42,
41-
/// permissions: 0o000,
42-
/// description: "Example of i32",
43-
/// },
44-
/// writeable_i32: i32 {
45-
/// default: 42,
46-
/// permissions: 0o644,
47-
/// description: "Example of i32",
48-
/// },
49-
/// },
5038
/// }
5139
///
5240
/// struct MyModule;

0 commit comments

Comments
 (0)