[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250220161951.844367-1-trintaeoitogc@gmail.com>
Date: Thu, 20 Feb 2025 13:19:49 -0300
From: Guilherme Giacomo Simoes <trintaeoitogc@...il.com>
To: a.hindborg@...nel.org,
alex.gaynor@...il.com,
aliceryhl@...gle.com,
apw@...onical.com,
arnd@...db.de,
aswinunni01@...il.com,
axboe@...nel.dk,
benno.lossin@...ton.me,
bhelgaas@...gle.com,
bjorn3_gh@...tonmail.com,
boqun.feng@...il.com,
dakr@...nel.org,
dwaipayanray1@...il.com,
ethan.twardy@...il.com,
fujita.tomonori@...il.com,
gary@...yguo.net,
gregkh@...uxfoundation.org,
joe@...ches.com,
lukas.bulwahn@...il.com,
ojeda@...nel.org,
pbonzini@...hat.com,
tmgross@...ch.edu,
walmeida@...rosoft.com
Cc: trintaeoitogc@...il.com,
rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH V3 0/2] author field in module! macro should be a array
In the module! macro, the author field is currently of type String.
Since modules can have multiple authors, this limitation prevents
specifying more than one.
- Change the author field to Option<Vec<String>> to allow creating
modules with multiple authors.
- rename the field from author to authors to make it explicit that it
can refer to multiple authors.
- In modules that use the author field, update its value to an array of
strings, and also rename it from author to authors.
- Change the checkpatch.pl to find poorly formatted arrays in the macro
module!
---
V3 changes
- Improved commit messages
- Changed field name from author to authors
- Included the forgeted samples/rust/rust_driver_platform.rs in 1/2
- Change the documentation in rnull.rs
- Fixing the WARNING messages in checkpatch
- Fixing align messages in checkpatch
- Removed unneccessary \n in $herevet in checkpatch
---
Guilherme Giacomo Simoes (2):
rust: module: change author to an array
checkpatch: throw error for malformed arrays
drivers/block/rnull.rs | 2 +-
rust/kernel/net/phy.rs | 4 +--
rust/kernel/pci.rs | 2 +-
rust/macros/lib.rs | 6 ++--
rust/macros/module.rs | 12 ++++----
samples/rust/rust_driver_pci.rs | 2 +-
samples/rust/rust_driver_platform.rs | 2 +-
samples/rust/rust_minimal.rs | 2 +-
samples/rust/rust_misc_device.rs | 2 +-
samples/rust/rust_print_main.rs | 2 +-
scripts/checkpatch.pl | 43 ++++++++++++++++++++++++++++
11 files changed, 62 insertions(+), 17 deletions(-)
--
2.34.1
Powered by blists - more mailing lists