diff options
| author | Aswin Unnikrishnan <aswinunni01@gmail.com> | 2024-04-19 21:50:13 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-02 16:32:42 +0200 |
| commit | ece94c74e4bfd91e1b7b61e3ea4fcf95d3d9b4b2 (patch) | |
| tree | 71407a250469ea26115f745ce3d577352303d610 /rust | |
| parent | 4805d764f9041799a559dc2b112f227dcd26d599 (diff) | |
| download | linux-ece94c74e4bfd91e1b7b61e3ea4fcf95d3d9b4b2.tar.gz linux-ece94c74e4bfd91e1b7b61e3ea4fcf95d3d9b4b2.tar.bz2 linux-ece94c74e4bfd91e1b7b61e3ea4fcf95d3d9b4b2.zip | |
rust: remove `params` from `module` macro example
commit 19843452dca40e28d6d3f4793d998b681d505c7f upstream.
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: 1fbde52bde73 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust')
| -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 c42105c2ff96..34ae73f5db06 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; |
