[PATCH V4 0/2] author field in module! macro should be a array

Guilherme Giacomo Simoes posted 2 patches 9 months, 3 weeks ago
There is a newer version of this series
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_faux.rs     |  2 +-
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 ++++++++++++++++++++++++++++
12 files changed, 63 insertions(+), 18 deletions(-)
[PATCH V4 0/2] author field in module! macro should be a array
Posted by Guilherme Giacomo Simoes 9 months, 3 weeks ago
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!

---
V4 changes 

- Improved checkpatch warning messages
- Improved shiftwidth
- Fixed the regex 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_faux.rs     |  2 +-
 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 ++++++++++++++++++++++++++++
 12 files changed, 63 insertions(+), 18 deletions(-)

-- 
2.34.1