Skip to content

Commit e1876fb

Browse files
Jump2233mhiramat
authored andcommitted
kprobes: Add missing kerneldoc for __get_insn_slot
Add kerneldoc for '__get_insn_slot' function to fix W=1 warnings: kernel/kprobes.c:141 function parameter 'c' not described in '__get_insn_slot' Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Peng Jiang <[email protected]> Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
1 parent 2867495 commit e1876fb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

kernel/kprobes.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,12 @@ struct kprobe_insn_cache kprobe_insn_slots = {
135135
static int collect_garbage_slots(struct kprobe_insn_cache *c);
136136

137137
/**
138-
* __get_insn_slot() - Find a slot on an executable page for an instruction.
139-
* We allocate an executable page if there's no room on existing ones.
138+
* __get_insn_slot - Find a slot on an executable page for an instruction.
139+
* @c: Pointer to kprobe instruction cache
140+
*
141+
* Description: Locates available slot on existing executable pages,
142+
* allocates an executable page if there's no room on existing ones.
143+
* Return: Pointer to instruction slot on success, NULL on failure.
140144
*/
141145
kprobe_opcode_t *__get_insn_slot(struct kprobe_insn_cache *c)
142146
{

0 commit comments

Comments
 (0)