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/20250704143817707TOCcfTRWsO5OAbQ2eYoU9@zte.com.cn/ Signed-off-by: Peng Jiang <jiang.peng9@zte.com.cn> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
1 parent 2867495 commit e1876fb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

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)