bpf: Fix string kfuncs names in doc comments
PATCH 1/1 bpf: Fix string kfuncs names in doc comments
Documentation comments for bpf_strnlen and bpf_strcspn contained incorrect function names.
Fixes e91370550f1f ("bpf: Add kfuncs for read-only string operations")
Reported-by Stephen Rothwell <[email protected]>
Signed-off-by Viktor Malik <[email protected]>
--- kernel/bpf/helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/bpf/helpers.c +3 -3
@@ -3451,7 +3451,7 @@ __bpf_kfunc int bpf_strrchr(const char *s__ign, int c) }/** -* bpf_strlen - Calculate the length of a length-limited string +* bpf_strnlen - Calculate the length of a length-limited string * @s__ign: The string * @count: The maximum number of characters to count *
@@ -3541,8 +3541,8 @@ __bpf_kfunc int bpf_strspn(const char *s__ign, const char *accept__ign) }/** -* strcspn - Calculate the length of the initial substring of @s__ign which -* does not contain letters in @reject__ign +* bpf_strcspn - Calculate the length of the initial substring of @s__ign which +* does not contain letters in @reject__ign * @s__ign: The string to be searched * @reject__ign: The string to search for *
Signature · 1 line
2.50.0
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:
Quoted 9 lines · On Fri, 27 Jun 2025 10:20:01 +0200 you wrote:
Documentation comments for
bpf_strnlenandbpf_strcspncontained incorrect function names.Fixes e91370550f1f ("bpf: Add kfuncs for read-only string operations")Reported-by Stephen Rothwell <[email protected]>Signed-off-by Viktor Malik <[email protected]>[...]
Here is the summary with links:
- [bpf-next] bpf: Fix string kfuncs names in doc comments
https://git.kernel.org/bpf/bpf-next/c/5272b51367ea
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html