From: Viktor Malik Date: Fri, 27 Jun 2025 08:20:01 +0000 (+0200) Subject: bpf: Fix string kfuncs names in doc comments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5272b51367ea001c56a4be32342d1da1a3206fcb;p=thirdparty%2Flinux.git 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 Closes: https://lore.kernel.org/bpf/20250627174759.3a435f86@canb.auug.org.au/T/#u Signed-off-by: Viktor Malik Link: https://lore.kernel.org/r/20250627082001.237606-1-vmalik@redhat.com Signed-off-by: Alexei Starovoitov --- diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c index 6d051416c1846..b4117681137ef 100644 --- a/kernel/bpf/helpers.c +++ b/kernel/bpf/helpers.c @@ -3451,7 +3451,7 @@ err_out: } /** - * 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 @@ err_out: } /** - * 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 *