[PATCH V2 0/2] author field in module! macro should be a array
From: Guilherme Giacomo Simoes
Date: Fri Feb 14 2025 - 13:46:43 EST
In the module! macro, the author field has a string type. Once that the
modules can has more than one author, this is impossible in the current
scenary.
- Change the author field for accept a array string type and enable
module creations with more than one author.
- In modules that use the author field, change its value to a string
array.
- Change the check patch to find poorly formatted arrays in the macro
module!
---
V2 changes
- Merge the changes in module.rs and in modules that contains a author of
module in a only one commit.
- Remove uneccessary "FOR EXAMPLE" in checkpatch
- Change from ERROR to WARN in message that is throw in checkpatch
- Remove the hungarian style namings in checkptach
- Improve code formatting in checkpatch
Guilherme Giacomo Simoes (2):
rust: module: change author to be a array
checkpatch: throw error in malformed arrays
drivers/block/rnull.rs | 2 +-
rust/kernel/net/phy.rs | 4 +--
rust/kernel/pci.rs | 2 +-
rust/macros/lib.rs | 4 +--
rust/macros/module.rs | 8 +++---
samples/rust/rust_driver_pci.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 ++++++++++++++++++++++++++++++++
10 files changed, 58 insertions(+), 13 deletions(-)
--
2.34.1