Skip to content

Commit 7beb82b

Browse files
rddunlaprostedt
authored andcommitted
tracing/synthetic: fix kernel-doc warnings
scripts/kernel-doc warns about using @Args: for variadic arguments to functions. Documentation/doc-guide/kernel-doc.rst says that this should be written as @...: instead, so update the source code to match that, preventing the warnings. trace_events_synth.c:1165: warning: Excess function parameter 'args' description in '__synth_event_gen_cmd_start' trace_events_synth.c:1714: warning: Excess function parameter 'args' description in 'synth_event_trace' Link: https://lore.kernel.org/linux-trace-kernel/[email protected] Cc: Mathieu Desnoyers <[email protected]> Fixes: 35ca520 ("tracing: Add synthetic event command generation functions") Fixes: 8dcc53a ("tracing: Add synth_event_trace() and related functions") Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent b803d7c commit 7beb82b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/trace/trace_events_synth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ EXPORT_SYMBOL_GPL(synth_event_add_fields);
11371137
* @cmd: A pointer to the dynevent_cmd struct representing the new event
11381138
* @name: The name of the synthetic event
11391139
* @mod: The module creating the event, NULL if not created from a module
1140-
* @args: Variable number of arg (pairs), one pair for each field
1140+
* @...: Variable number of arg (pairs), one pair for each field
11411141
*
11421142
* NOTE: Users normally won't want to call this function directly, but
11431143
* rather use the synth_event_gen_cmd_start() wrapper, which
@@ -1695,7 +1695,7 @@ __synth_event_trace_end(struct synth_event_trace_state *trace_state)
16951695
* synth_event_trace - Trace a synthetic event
16961696
* @file: The trace_event_file representing the synthetic event
16971697
* @n_vals: The number of values in vals
1698-
* @args: Variable number of args containing the event values
1698+
* @...: Variable number of args containing the event values
16991699
*
17001700
* Trace a synthetic event using the values passed in the variable
17011701
* argument list.

0 commit comments

Comments
 (0)