Re: [PATCH bpf-next] bpftool: remove attach_type_name forward declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30/06/2022 10:36, Tobias Klauser 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.
> 
> Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxx>
> ---
>  tools/bpf/bpftool/main.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/tools/bpf/bpftool/main.h b/tools/bpf/bpftool/main.h
> index 589cb76b227a..5e5060c2ac04 100644
> --- 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,

Reviewed-by: Quentin Monnet <quentin@xxxxxxxxxxxxx>

Thanks!



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux