Add missing kernel-doc for function or struct members. Use the correct enum names for enum members to prevent kernel-doc warnings.
trace.h:302: warning: Function parameter or struct member 'cond_data' not described in 'cond_snapshot' trace.h:618: warning: Excess struct member 'print_headers' description in 'tracer' trace.h:1978: warning: Enum value 'EVENT_CMD_FL_POST_TRIGGER' not described in enum 'event_command_flags' trace.h:1978: warning: Enum value 'EVENT_CMD_FL_NEEDS_REC' not described in enum 'event_command_flags' trace.h:1978: warning: Excess enum value 'NEEDS_REC' description in 'event_command_flags' trace.h:1978: warning: Excess enum value 'POST_TRIGGER' description in 'event_command_flags' Signed-off-by: Randy Dunlap <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: [email protected] --- kernel/trace/trace.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- linux-next-20250108.orig/kernel/trace/trace.h +++ linux-next-20250108/kernel/trace/trace.h @@ -285,6 +285,8 @@ typedef bool (*cond_update_fn_t)(struct * associated with the trace instance by * tracing_cond_snapshot_disable(). * + * @cond_data: the conditional snapshot's associated data + * * The method below is required. * * @update: When a conditional snapshot is invoked, the update() @@ -568,7 +570,7 @@ struct trace_option_dentry { * @read: override the default read callback on trace_pipe * @splice_read: override the default splice_read callback on trace_pipe * @selftest: selftest to run on boot (see trace_selftest.c) - * @print_headers: override the first lines that describe your columns + * @print_header: override the first lines that describe your columns * @print_line: callback that prints a trace * @set_flag: signals one of your private flags changed (trace_options file) * @flags: your private flags @@ -1947,7 +1949,7 @@ struct event_command { /** * enum event_command_flags - flags for struct event_command * - * @POST_TRIGGER: A flag that says whether or not this command needs + * @EVENT_CMD_FL_POST_TRIGGER: Indicates whether or not this command needs * to have its action delayed until after the current event has * been closed. Some triggers need to avoid being invoked while * an event is currently in the process of being logged, since @@ -1966,7 +1968,7 @@ struct event_command { * itself logs to the trace buffer, this flag should be set, * otherwise it can be left unspecified. * - * @NEEDS_REC: A flag that says whether or not this command needs + * @EVENT_CMD_FL_NEEDS_REC: Indicates whether or not this command needs * access to the trace record in order to perform its function, * regardless of whether or not it has a filter associated with * it (filters make a trigger require access to the trace record
