Skip to contentSkip to conversation

bpf: Fix string kfuncs names in doc comments

PATCH Applied Viktor Malik 2 participants 2 messages Jun 27, 2025 BPF

lore
Share & tools
lore
#0 lore raw

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")
---
 kernel/bpf/helpers.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/bpf/helpers.c +3 -3
index 6d051416c184..b4117681137e 100644
@@ -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
#1 lore raw
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_strnlen and bpf_strcspn contained incorrect function names.

Fixes e91370550f1f ("bpf: Add kfuncs for read-only string operations")

[...]

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