Rust-for-linux archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] rust: add example for `alias` argument in `module` macro documentation
@ 2024-05-12 11:23 Aswin Unnikrishnan
  2024-05-12 11:23 ` [PATCH v2 2/2] rust: fix datatype in docs for `module` macro arguments Aswin Unnikrishnan
  2024-05-27 19:31 ` [PATCH v2 1/2] rust: add example for `alias` argument in `module` macro documentation Benno Lossin
  0 siblings, 2 replies; 5+ messages in thread
From: Aswin Unnikrishnan @ 2024-05-12 11:23 UTC (permalink / raw
  To: Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho
  Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
	Andreas Hindborg, Alice Ryhl, rust-for-linux, Aswin Unnikrishnan

Add example for `alias` argument supported by `module` macro.
`alias` accepts an array of alternate names for the module as string.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Aswin Unnikrishnan <aswinunni01@gmail.com>
---

Changes in v2:
- Add Reviewed-by tag
- Link to v1: https://lore.kernel.org/rust-for-linux/20240419215015.157258-2-aswinunni01@gmail.com/

 rust/macros/lib.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rust/macros/lib.rs b/rust/macros/lib.rs
index 520eae5fd792..aa89b41fa10e 100644
--- a/rust/macros/lib.rs
+++ b/rust/macros/lib.rs
@@ -35,6 +35,7 @@
 ///     author: "Rust for Linux Contributors",
 ///     description: "My very own kernel module!",
 ///     license: "GPL",
+///     alias: ["alternate_module_name"],
 /// }
 ///
 /// struct MyModule;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-29 18:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-12 11:23 [PATCH v2 1/2] rust: add example for `alias` argument in `module` macro documentation Aswin Unnikrishnan
2024-05-12 11:23 ` [PATCH v2 2/2] rust: fix datatype in docs for `module` macro arguments Aswin Unnikrishnan
2024-05-27 19:31   ` Benno Lossin
2024-05-29 18:55   ` Vincenzo Palazzo
2024-05-27 19:31 ` [PATCH v2 1/2] rust: add example for `alias` argument in `module` macro documentation Benno Lossin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).