Skip to content

Commit 5272b51

Browse files
viktormalikAlexei Starovoitov
authored andcommitted
bpf: Fix string kfuncs names in doc comments
Documentation comments for bpf_strnlen and bpf_strcspn contained incorrect function names. Fixes: e913705 ("bpf: Add kfuncs for read-only string operations") Reported-by: Stephen Rothwell <[email protected]> Closes: https://lore.kernel.org/bpf/[email protected]/T/#u Signed-off-by: Viktor Malik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 48d998a commit 5272b51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/bpf/helpers.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3451,7 +3451,7 @@ __bpf_kfunc int bpf_strrchr(const char *s__ign, int c)
34513451
}
34523452

34533453
/**
3454-
* bpf_strlen - Calculate the length of a length-limited string
3454+
* bpf_strnlen - Calculate the length of a length-limited string
34553455
* @s__ign: The string
34563456
* @count: The maximum number of characters to count
34573457
*
@@ -3541,8 +3541,8 @@ __bpf_kfunc int bpf_strspn(const char *s__ign, const char *accept__ign)
35413541
}
35423542

35433543
/**
3544-
* strcspn - Calculate the length of the initial substring of @s__ign which
3545-
* does not contain letters in @reject__ign
3544+
* bpf_strcspn - Calculate the length of the initial substring of @s__ign which
3545+
* does not contain letters in @reject__ign
35463546
* @s__ign: The string to be searched
35473547
* @reject__ign: The string to search for
35483548
*

0 commit comments

Comments
 (0)