[PATCH] samples: ftrace: Fix wrong parameter names in MODULE_PARM_DESC()

zhangjiao2 posted 1 patch 1 month ago
samples/ftrace/ftrace-ops.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] samples: ftrace: Fix wrong parameter names in MODULE_PARM_DESC()
Posted by zhangjiao2 1 month ago
From: zhang jiao <zhangjiao2@cmss.chinamobile.com>

The MODULE_PARM_DESC() for assist_recursion and assist_rcu both
reference a non-existent parameter "assist_reursion", which is a
misspelling of "assist_recursion" and entirely the wrong name for
the assist_rcu parameter. Correct them to match the module_param()
declarations.

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
---
 samples/ftrace/ftrace-ops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/samples/ftrace/ftrace-ops.c b/samples/ftrace/ftrace-ops.c
index 8cae38d8b879..5ca621149687 100644
--- a/samples/ftrace/ftrace-ops.c
+++ b/samples/ftrace/ftrace-ops.c
@@ -44,11 +44,11 @@ MODULE_PARM_DESC(save_regs, "Register ops with FTRACE_OPS_FL_SAVE_REGS (save all
 
 static bool assist_recursion;
 module_param(assist_recursion, bool, 0);
-MODULE_PARM_DESC(assist_reursion, "Register ops with FTRACE_OPS_FL_RECURSION");
+MODULE_PARM_DESC(assist_recursion, "Register ops with FTRACE_OPS_FL_RECURSION");
 
 static bool assist_rcu;
 module_param(assist_rcu, bool, 0);
-MODULE_PARM_DESC(assist_reursion, "Register ops with FTRACE_OPS_FL_RCU");
+MODULE_PARM_DESC(assist_rcu, "Register ops with FTRACE_OPS_FL_RCU");
 
 /*
  * By default, a trivial tracer is used which immediately returns to mimimize
-- 
2.33.0