Skip to content

Commit d5090d9

Browse files
rddunlaprostedt
authored andcommitted
tracing/filter: fix kernel-doc warnings
Use the 'struct' keyword for a struct's kernel-doc notation and use the correct function parameter name to eliminate kernel-doc warnings: kernel/trace/trace_events_filter.c:136: warning: cannot understand function prototype: 'struct prog_entry ' kerne/trace/trace_events_filter.c:155: warning: Excess function parameter 'when_to_branch' description in 'update_preds' Also correct some trivial punctuation problems. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent ca0f2cf commit d5090d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel/trace/trace_events_filter.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static bool is_not(const char *str)
128128
}
129129

130130
/**
131-
* prog_entry - a singe entry in the filter program
131+
* struct prog_entry - a singe entry in the filter program
132132
* @target: Index to jump to on a branch (actually one minus the index)
133133
* @when_to_branch: The value of the result of the predicate to do a branch
134134
* @pred: The predicate to execute.
@@ -140,16 +140,16 @@ struct prog_entry {
140140
};
141141

142142
/**
143-
* update_preds- assign a program entry a label target
143+
* update_preds - assign a program entry a label target
144144
* @prog: The program array
145145
* @N: The index of the current entry in @prog
146-
* @when_to_branch: What to assign a program entry for its branch condition
146+
* @invert: What to assign a program entry for its branch condition
147147
*
148148
* The program entry at @N has a target that points to the index of a program
149149
* entry that can have its target and when_to_branch fields updated.
150150
* Update the current program entry denoted by index @N target field to be
151151
* that of the updated entry. This will denote the entry to update if
152-
* we are processing an "||" after an "&&"
152+
* we are processing an "||" after an "&&".
153153
*/
154154
static void update_preds(struct prog_entry *prog, int N, int invert)
155155
{

0 commit comments

Comments
 (0)