projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0cf642
)
bpftool: Remove attach_type_name forward declaration
author
Tobias Klauser
<tklauser@distanz.ch>
Thu, 30 Jun 2022 09:36:38 +0000
(11:36 +0200)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Thu, 30 Jun 2022 14:11:20 +0000
(16:11 +0200)
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.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link:
https://lore.kernel.org/bpf/20220630093638.25916-1-tklauser@distanz.ch
tools/bpf/bpftool/main.h
patch
|
blob
|
history
diff --git
a/tools/bpf/bpftool/main.h
b/tools/bpf/bpftool/main.h
index 589cb76b227ade760a785a6e8b81e12165dbfc3a..5e5060c2ac047ba6a5ee01a375d7bc00dd437f8d 100644
(file)
--- a/
tools/bpf/bpftool/main.h
+++ b/
tools/bpf/bpftool/main.h
@@
-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,