Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82AA01DC9B8 for ; Fri, 27 Jun 2025 08:20:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751012423; cv=none; b=gZcAfcAT7D4Q2y16+i82CJLOSpDmBEXa7WsEDhXnBi99QWuWqPdOfpQu6yjskm+h0d0CojmzW62ysXbxxtKol1/BbYcvA6Rkhtmuvr4x8zVuw93C55UK46OX58inxaLRWL7VeE/+gUrEOMkYQLVRmK916W3aMI+yMVPKFzsy2q0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751012423; c=relaxed/simple; bh=vV71196NNzG38a/OQbaoM/DAVq2xEjxFr9aI98bR+E4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TO3jxklVrY7alFWkkbHSZkJFjEv0MEQ1jt0rlKwnrYSfPErAbDGY4Nl/lFoLCUu1GrEsYntk8fiAfSQ1lWTSdyRCqsqnTum+SeW3dzlr33O8tzN9vqtQVxAie0UXGQUe2YzCOimtox4FS5T4hfoaTCiJ5G+YA//qzrqs/m1U3WQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=i+eKRd8h; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="i+eKRd8h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1751012420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4FgB+hppyuYgSJ7DUk5fmzmCO/nlRHcyEDnv9eMB6j0=; b=i+eKRd8hSTyyky3z+gILzmqc9KptilE/mZe0F2spWNC36914sNi68wW1/X2lPACOFdMUtk HRcmYCvHJCdXbU9nQZfz3v5S4+KXC0PdZyWZbWPlqlJwQp5PtTCpflg8MjAUf/JNTLaJC+ kIy2Ywp+/YQEYMXv/AvTj9bIIHFKSaY= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-363-BM5TWtTgNSyQRU2zNVNI2A-1; Fri, 27 Jun 2025 04:20:16 -0400 X-MC-Unique: BM5TWtTgNSyQRU2zNVNI2A-1 X-Mimecast-MFC-AGG-ID: BM5TWtTgNSyQRU2zNVNI2A_1751012414 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 42EA91800287; Fri, 27 Jun 2025 08:20:13 +0000 (UTC) Received: from vmalik-fedora.redhat.com (unknown [10.44.32.95]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EB2AD19560A2; Fri, 27 Jun 2025 08:20:06 +0000 (UTC) From: Viktor Malik To: bpf@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Viktor Malik , Stephen Rothwell Subject: [PATCH bpf-next] bpf: Fix string kfuncs names in doc comments Date: Fri, 27 Jun 2025 10:20:01 +0200 Message-ID: <20250627082001.237606-1-vmalik@redhat.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 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 --- kernel/bpf/helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c index 6d051416c184..b4117681137e 100644 --- a/kernel/bpf/helpers.c +++ b/kernel/bpf/helpers.c @@ -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 * -- 2.50.0