Re: [PATCH] rust: module_param: use `pr_warn_once!` for null pointer warning

From: Miguel Ojeda

Date: Mon May 18 2026 - 13:43:50 EST


On Mon, Apr 27, 2026 at 10:13 AM Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>
> Replace `pr_warn!` and the accompanying TODO with `pr_warn_once!`, now that
> the macro is available.
>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>

This seems to be:

https://lore.kernel.org/rust-for-linux/20260226120848.82891-3-adarshdas950@xxxxxxxxx/

Another one was also sent a few moments ago:

https://lore.kernel.org/rust-for-linux/20260518134107.4114-1-cppcoffee@xxxxxxxxx/

Is modules going to pick the original one? Otherwise, I am happy to do so.

I guess we can assume the reviews here to apply there.

Thanks!

Cheers,
Miguel