🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4336

Re: [PATCH bpf-next 4/6] libbpf: Factor out __bpf_sys_fd helper

#4336
From: bot+bpf-ci
Date: Sat, 17 Oct 2026 14:53
41 lines
7371 bytes
--===============9111035185755451495==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

> libbpf: Factor out __bpf_sys_fd helper

TL;DR: Commit message nit only: subject and body call the new helper
__bpf_sys_fd, but the code names it __sys_bpf_fd. Should the message match?

> libbpf: Factor out __bpf_sys_fd helper
>
> In the next patch, it also needs to use the extended BPF syscall to
> receive the reported log.
>
> So, factor out __bpf_sys_fd helper.
>
> No functional changes intended.
>
> Signed-off-by: Leon Hwang <leon.hwang@linux.dev>

This isn't a bug, but the subject and body name the helper __bpf_sys_fd,
while the function the patch adds is:

+static int __sys_bpf_fd(union bpf_attr *attr, const size_t attr_sz, enum bpf_cmd cmd,
+			struct bpf_log_opts *log_opts)

which follows the existing sys_bpf(), sys_bpf_fd() and sys_bpf_ext_fd()
naming.

Should the subject and body say __sys_bpf_fd instead, so that searching the
log for the real function name finds this commit?


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/39042048581
--===============9111035185755451495==--
Technical Details
Message-ID: <eb32cc32c29af7d8ad5a342bbd9a0da19c8b53d31a71754b98953a5be62638f0@mail.kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347761-linux-kernel-netdev=dewy.ru
References: <20261017142649.51047-5-leon.hwang@linux.dev>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347761-linux-kernel-netdev=dewy.ru
From: bot+bpf-ci@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH bpf-next 4/6] libbpf: Factor out __bpf_sys_fd helper
Date: Sat, 17 Oct 2026 14:53:19 +0000 (UTC)
Organization: Usenet Network
Message-ID: <eb32cc32c29af7d8ad5a342bbd9a0da19c8b53d31a71754b98953a5be62638f0@mail.kernel.org>
References: <20261017142649.51047-5-leon.hwang@linux.dev>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============9111035185755451495=="
Injection-Info: usenet.network;
	logging-data="3066345"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:vhWSeIKfWFbSECznxaSLlPcXIJg= sha256:jVcyjql4uFS/RGSbvtRnsV9l1H0GzglWGCrnzfuaHCM=
	sha1:8CAZTqRcxMPWybYT2cQ7GkaMGfM= sha256:P+U97dLyI0rgREIxIqMsEkuQ8l0+3jdizSW7izl8sZY=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 7FF20112023; Sat, 17 Oct 2026 17:53:43 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.64
X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id bclcQ_HUG_sK;
	Sat, 17 Oct 2026 17:53:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347761-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 5EBD1DF0B6; Sat, 17 Oct 2026 17:53:29 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 49FAD3458B; Sat, 17 Oct 2026 14:53:25 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 87CB248BD46;
	Sat, 17 Oct 2026 14:53:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FGWhLXlu"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(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 866F22E266C;
	Sat, 17 Oct 2026 14:53:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792248804; cv=none; b=l2vMYIvcLRqhl7lOw4dCy0IlV9J7Ne3/c8R+PYF3qC/1XCjcsDjnYSpBzOqDN3UXnR1m8hlx5YX0at7bF3s5zqdpfaZnedwjSIf259AEPwTbg7ETVMBniM0Qi8DMUsNti2QwNHBCZ4Pnwm1GScIKu3rThBibH6j38IE47rWjWw0=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792248804; c=relaxed/simple;
	bh=fryIqE7Rw8splORyfR0h2iOyhHC2h719ALE5w8lFEVs=;
	h=Content-Type:MIME-Version:Message-Id:In-Reply-To:References:
	 Subject:From:To:Cc:Date; b=MKGv+/WMDY4SuVgMrIsTwdcHFM466xaA08UOXK1kmb4E0ReVXpyDcQ7dJCEWkvzlgDq0vIciwiXCwTMYcnf12bI14G2elZ25PJ3mb2/UfpTp3Yh8HrOCUDd1zfcuH8XRw3bqih03XjLuDsQ/dnC24He9aiwkLUS0RmXOAvpXiT8=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FGWhLXlu; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0FB91F000C4;
	Sat, 17 Oct 2026 14:53:19 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792248803;
	bh=nFEIPKzxh/STgeEaGPl4FKDwpruwwaBT7h5f2UfiKHA=;
	h=In-Reply-To:References:Subject:From:To:Cc:Date;
	b=FGWhLXluvJBDD1ZAIbTOsaHO/abUyld2KdAC3vUsipfeT+edjqEVGyYyNzPbpdk1E
	 lH7NG2tODMOiYAZvoyjF2YnTGhvWI6CpiWNvCluq21BwUYz+tLGqoMAGxBeCvkHw0y
	 rl1+F1kbD5Lp4ieAcRpgNf0WkbG85HrZ5zxezMkFHsikPyasx52CXeGtP6Z3+z8bTR
	 8Z9HRBPZM26BOu7jVq4Ie7tZY5bAfDWjbtyfGNPbzQqdhHl4EpPg3KUSV0qHiMmdOO
	 ZpOaq/n17Ftwx4DS/uI0+HiU0l3g/zcIsKmy9yZH3fo9TGQXZQlMOvk9h4GQghDxf5
	 B77KDpJ8jLpbw==
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261017142649.51047-5-leon.hwang@linux.dev>
X-Cc: andrew+netdev@lunn.ch,davem@davemloft.net,edumazet@kernel.org,kuba@kernel.org,pabeni@redhat.com,horms@kernel.org,ast@kernel.org,daniel@iogearbox.net,andrii@kernel.org,eddyz87@gmail.com,memxor@gmail.com,martin.lau@linux.dev,song@kernel.org,yonghong.song@linux.dev,jolsa@kernel.org,emil@etsalapatis.com,ihor.solodrai@linux.dev,hawk@kernel.org,john.fastabend@gmail.com,sdf@fomichev.me,rostedt@goodmis.org,mhiramat@kernel.org,mathieu.desnoyers@efficios.com,shuah@kernel.org,kuniyu@google.com,liuhangbin@gmail.com,mkarsten@uwaterloo.ca,masashi.honma@gmail.com,linux-kernel@vger.kernel.org,netdev@vger.kernel.org,linux-trace-kernel@vger.kernel.org,linux-kselftest@vger.kernel.org,leon.hwang@linux.dev,ast@kernel.org,andrii@kernel.org,daniel@iogearbox.net,martin.lau@kernel.org,eddyz87@gmail.com,yonghong.song@linux.dev,mason@kernel.org,ihor.solodrai@linux.dev