rust: kernel: module_param: replace pr_warn with pr_warn_once
Subsystems (2)
PATCH 1/1 rust: kernel: module_param: replace pr_warn with pr_warn_once
Signed-off-by Xiaobo Liu <[email protected]>
--- rust/kernel/module_param.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
rust/kernel/module_param.rs +1 -2
@@ -62,8 +62,8 @@ pub trait ModuleParam: Sized + Copy {// NOTE: If we start supporting arguments without values, val _is_ allowed // to be null here. if val.is_null () { -// TODO: Use pr_warn_once available. -crate ::pr_warn!("Null pointer passed to `module_param::set_param`" ); +crate ::pr_warn_once!("Null pointer passed to `module_param::set_param`" );return EINVAL .to_errno (); }
Signature · 1 line
2.34.1
Onur Özkan
reviewerQuoted 2 lines · On Mon, 18 May 2026 18:47:35 +0800 Xiaobo Liu <[email protected]> wrote:
Signed-off-by Xiaobo Liu <[email protected]>---
You need to write description for the change.
Onur
Quoted 20 lines
rust/kernel/module_param.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)rust/kernel/module_param.rs +1
-2@@ -62,8 +62,8 @@ pub trait ModuleParam: Sized + Copy {// NOTE: If we start supporting arguments without values, val _is_ allowed // to be null here. if val.is_null () { -// TODO: Use pr_warn_once available. -crate ::pr_warn!("Null pointer passed to `module_param::set_param`" ); +crate ::pr_warn_once!("Null pointer passed to `module_param::set_param`" );return EINVAL .to_errno (); }Signature · 1 line
2.34.1