Skip to contentSkip to conversation

bpftool: remove attach_type_name forward declaration

PATCH Applied Tobias Klauser 3 participants 3 messages Jun 30, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 589cb76b227a..5e5060c2ac04 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Tobias Klauser

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 -0
index 589cb76b227a..5e5060c2ac04 100644

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!

#2 lore raw
In reply to Tobias Klauser
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_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(-)

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