mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
rust: remove params
from module
macro example
commit19843452dc
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:1fbde52bde
("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>
This commit is contained in:
parent
4805d764f9
commit
ece94c74e4
1 changed files with 0 additions and 12 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue