public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4] libbpf: update the comment to remove the reference to the deprecated interface bpf_program__load().
@ 2025-11-03 12:07 Jianyun Gao
  2025-11-04 18:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Jianyun Gao @ 2025-11-03 12:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: Jianyun Gao, Andrii Nakryiko, Eduard Zingerman,
	Alexei Starovoitov, Daniel Borkmann, Martin KaFai Lau, Song Liu,
	Yonghong Song, John Fastabend, KP Singh, Stanislav Fomichev,
	Hao Luo, Jiri Olsa, open list:BPF [LIBRARY] (libbpf)

Commit be2f2d1680df ("libbpf: Deprecate bpf_program__load() API") marked
bpf_program__load() as deprecated starting with libbpf v0.6. And later
in commit 146bf811f5ac ("libbpf: remove most other deprecated high-level
APIs") actually removed the bpf_program__load() implementation and
related old high-level APIs.

This patch update the comment in bpf_program__set_attach_target() to
remove the reference to the deprecated interface bpf_program__load().

Signed-off-by: Jianyun Gao <jianyungao89@gmail.com>
---
v3->v4:
Try to fix the CI FAILURE issue by rebasing the local code to the latest
version. The v3 version is here:

https://lore.kernel.org/lkml/20251030060322.1192839-1-jianyungao89@gmail.com/

 tools/lib/bpf/libbpf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index fbe74686c97d..27a07782bd72 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -13858,8 +13858,8 @@ int bpf_program__set_attach_target(struct bpf_program *prog,
 		return libbpf_err(-EINVAL);
 
 	if (attach_prog_fd && !attach_func_name) {
-		/* remember attach_prog_fd and let bpf_program__load() find
-		 * BTF ID during the program load
+		/* Store attach_prog_fd. The BTF ID will be resolved later during
+		 * the normal object/program load phase.
 		 */
 		prog->attach_prog_fd = attach_prog_fd;
 		return 0;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v4] libbpf: update the comment to remove the reference to the deprecated interface bpf_program__load().
  2025-11-03 12:07 [PATCH v4] libbpf: update the comment to remove the reference to the deprecated interface bpf_program__load() Jianyun Gao
@ 2025-11-04 18:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-11-04 18:30 UTC (permalink / raw)
  To: Jianyun Gao
  Cc: linux-kernel, andrii, eddyz87, ast, daniel, martin.lau, song,
	yonghong.song, john.fastabend, kpsingh, sdf, haoluo, jolsa, bpf

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:

On Mon,  3 Nov 2025 20:07:27 +0800 you wrote:
> Commit be2f2d1680df ("libbpf: Deprecate bpf_program__load() API") marked
> bpf_program__load() as deprecated starting with libbpf v0.6. And later
> in commit 146bf811f5ac ("libbpf: remove most other deprecated high-level
> APIs") actually removed the bpf_program__load() implementation and
> related old high-level APIs.
> 
> This patch update the comment in bpf_program__set_attach_target() to
> remove the reference to the deprecated interface bpf_program__load().
> 
> [...]

Here is the summary with links:
  - [v4] libbpf: update the comment to remove the reference to the deprecated interface bpf_program__load().
    https://git.kernel.org/bpf/bpf-next/c/efa47566ad0b

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-04 18:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-03 12:07 [PATCH v4] libbpf: update the comment to remove the reference to the deprecated interface bpf_program__load() Jianyun Gao
2025-11-04 18:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox