Commit 19843452 authored by Aswin Unnikrishnan's avatar Aswin Unnikrishnan Committed by Miguel Ojeda

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: default avatarAswin Unnikrishnan <aswinunni01@gmail.com>
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Cc: stable@vger.kernel.org
Fixes: 1fbde52b ("rust: add `macros` crate")
Link: https://lore.kernel.org/r/20240419215015.157258-1-aswinunni01@gmail.com
[ Reworded slightly. ]
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent ded103c7
...@@ -35,18 +35,6 @@ ...@@ -35,18 +35,6 @@
/// author: "Rust for Linux Contributors", /// author: "Rust for Linux Contributors",
/// description: "My very own kernel module!", /// description: "My very own kernel module!",
/// license: "GPL", /// 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; /// struct MyModule;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment