bpftool: remove attach_type_name forward declaration
PATCH 1/1 bpftool: remove attach_type_name forward declaration
The attach_type_name definition was removed in commit 1ba5ad36e00f ("bpftool: Use libbpf_bpf_attach_type_str"). Remove its forward declaration in main.h as well.
--- tools/bpf/bpftool/main.h | 2 -- 1 file changed, 2 deletions(-)
tools/bpf/bpftool/main.h +0 -2
@@ -63,8 +63,6 @@ static inline void *u64_to_ptr(__u64 ptr)#define HELP_SPEC_LINK \ "LINK := { id LINK_ID | pinned FILE }" -extern const char *const attach_type_name[__MAX_BPF_ATTACH_TYPE]; -/* keep in sync with the definition in skeleton/pid_iter.bpf.c */ enum bpf_obj_type {BPF_OBJ_UNKNOWN ,
Signature · 1 line
2.36.1
Quoted 14 lines · Tobias Klauser
The
attach_type_namedefinition was removed in commit1ba5ad36e00f("bpftool: Uselibbpf_bpf_attach_type_str"). Remove its forward declaration inmain.has well.Signed-off-by Tobias Klauser <[email protected]>--- tools/bpf/bpftool/main.h | 2 -- 1 file changed, 2 deletions(-)tools/bpf/bpftool/main.h +0
-0
tools/bpf/bpftool/main.h static inline void *u64_to_ptr(__u64 ptr) · line 68
Quoted 8 lines
tools/bpf/bpftool/main.h +0
-2@@ -63,8 +63,6 @@ static inline void *u64_to_ptr(__u64 ptr)#define HELP_SPEC_LINK \ "LINK := { id LINK_ID | pinned FILE }" -extern const char *const attach_type_name[__MAX_BPF_ATTACH_TYPE]; -/* keep in sync with the definition in skeleton/pid_iter.bpf.c */ enum bpf_obj_type {BPF_OBJ_UNKNOWN ,
Thanks!
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Quoted 8 lines · On Thu, 30 Jun 2022 11:36:38 +0200 you wrote:
The
attach_type_namedefinition was removed in commit1ba5ad36e00f("bpftool: Uselibbpf_bpf_attach_type_str"). Remove its forward declaration inmain.has well.Signed-off-by Tobias Klauser <[email protected]>--- tools/bpf/bpftool/main.h | 2 -- 1 file changed, 2 deletions(-)
Here is the summary with links:
- [bpf-next] bpftool: remove attach_type_name forward declaration
https://git.kernel.org/bpf/bpf-next/c/b0cbd6154a9a
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html