Skip to content

Commit e0f8318

Browse files
Yujie-Liumhiramat
authored andcommitted
tracing/kprobes: Fix the description of variable length arguments
Fix the following kernel-doc warnings: kernel/trace/trace_kprobe.c:1029: warning: Excess function parameter 'args' description in '__kprobe_event_gen_cmd_start' kernel/trace/trace_kprobe.c:1097: warning: Excess function parameter 'args' description in '__kprobe_event_add_fields' Refer to the usage of variable length arguments elsewhere in the kernel code, "@..." is the proper way to express it in the description. Link: https://lore.kernel.org/all/20231027041315.2613166-1-yujie.liu@intel.com/ Fixes: 2a588dd ("tracing: Add kprobe event command generation functions") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202310190437.paI6LYJF-lkp@intel.com/ Signed-off-by: Yujie Liu <yujie.liu@intel.com> Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
1 parent 05d3ef8 commit e0f8318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/trace/trace_kprobe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ EXPORT_SYMBOL_GPL(kprobe_event_cmd_init);
10071007
* @name: The name of the kprobe event
10081008
* @loc: The location of the kprobe event
10091009
* @kretprobe: Is this a return probe?
1010-
* @args: Variable number of arg (pairs), one pair for each field
1010+
* @...: Variable number of arg (pairs), one pair for each field
10111011
*
10121012
* NOTE: Users normally won't want to call this function directly, but
10131013
* rather use the kprobe_event_gen_cmd_start() wrapper, which automatically
@@ -1080,7 +1080,7 @@ EXPORT_SYMBOL_GPL(__kprobe_event_gen_cmd_start);
10801080
/**
10811081
* __kprobe_event_add_fields - Add probe fields to a kprobe command from arg list
10821082
* @cmd: A pointer to the dynevent_cmd struct representing the new event
1083-
* @args: Variable number of arg (pairs), one pair for each field
1083+
* @...: Variable number of arg (pairs), one pair for each field
10841084
*
10851085
* NOTE: Users normally won't want to call this function directly, but
10861086
* rather use the kprobe_event_add_fields() wrapper, which

0 commit comments

Comments
 (0)