]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: module_param: use `pr_warn_once!` for null pointer warning
authorAndreas Hindborg <a.hindborg@kernel.org>
Mon, 27 Apr 2026 08:11:35 +0000 (10:11 +0200)
committerSami Tolvanen <samitolvanen@google.com>
Wed, 27 May 2026 00:20:39 +0000 (00:20 +0000)
commitac2f40107cf1296955c867dc31b1a1eceb8ec569
treeac7ea0bea6d8dbdfd05a4d878c35876a957712bc
parent04e17ca3f77e1722a5db068fbcd7b93c51656013
rust: module_param: use `pr_warn_once!` for null pointer warning

Replace `pr_warn!` and the accompanying TODO with `pr_warn_once!`, now that
the macro is available.

[ Note: Adarsh Das independently authored an identical patch on the
  rust-for-linux list, but it missed the modules tree. ]

Suggested-by: Adarsh Das <adarshdas950@gmail.com>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Aaron Tomlin <atomlin@atomlin.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Daniel Gomez <da.gomez@samsung.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
rust/kernel/module_param.rs