Re: [PATCH v9 0/3] rust: extend `module!` macro with integer parameter support

From: Andreas Hindborg
Date: Wed Apr 30 2025 - 15:40:38 EST


"Petr Pavlu" <petr.pavlu@xxxxxxxx> writes:

> On 3/21/25 10:17, Andreas Hindborg wrote:
>> Extend the `module!` macro with support module parameters. Also add some string
>> to integer parsing functions and updates `BStr` with a method to strip a string
>> prefix.
>>
>> Based on code by Adam Bratschi-Kaye lifted from the original `rust` branch [1].
>>
>> Link: https://github.com/Rust-for-Linux/linux/tree/bc22545f38d74473cfef3e9fd65432733435b79f [1]
>> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
> [...]
>> ---
>> Andreas Hindborg (3):
>> rust: str: add radix prefixed integer parsing functions
>> rust: add parameter support to the `module!` macro
>> modules: add rust modules files to MAINTAINERS
>>
>> MAINTAINERS | 2 +
>> rust/kernel/lib.rs | 1 +
>> rust/kernel/module_param.rs | 221 +++++++++++++++++++++++++++++++++++++++++++
>> rust/kernel/str.rs | 170 +++++++++++++++++++++++++++++++++
>> rust/macros/helpers.rs | 25 +++++
>> rust/macros/lib.rs | 31 ++++++
>> rust/macros/module.rs | 195 ++++++++++++++++++++++++++++++++++----
>> samples/rust/rust_minimal.rs | 10 ++
>> 8 files changed, 635 insertions(+), 20 deletions(-)
>
> I'd like to pick these remaining patches on modules-next around rc5/6,
> so they can sit on linux-next for a bit before going into 6.16-rc1. It
> is a new code with no users so I don't expect much fallout, but still.
>
> Could you please post an updated series that includes the cleanup from
> Miguel?

I thought I sent it, but it appears I did not. Sorry! I will ASAP.


Best regards,
Andreas Hindborg