Re: [PATCH v2 bpf-next 01/12] libbpf: rename DECLARE_LIBBPF_OPTS into LIBBPF_OPTS

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

 



On 11/3/21 6:08 PM, Andrii Nakryiko wrote:   
> It's confusing that libbpf-provided helper macro doesn't start with
> LIBBPF. Also "declare" vs "define" is confusing terminology, I can never
> remember and always have to look up previous examples.
> 
> Bypass both issues by renaming DECLARE_LIBBPF_OPTS into a short and
> clean LIBBPF_OPTS. To avoid breaking existing code, provide:
> 
>   #define DECLARE_LIBBPF_OPTS LIBBPF_OPTS
> 
> in libbpf_legacy.h. We can decide later if we ever want to remove it or
> we'll keep it forever because it doesn't add any maintainability burden.
> 
> Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx>
> ---

Acked-by: Dave Marchevsky <davemarchevsky@xxxxxx>

>  tools/lib/bpf/bpf.h           | 1 +
>  tools/lib/bpf/libbpf_common.h | 2 +-
>  tools/lib/bpf/libbpf_legacy.h | 1 +
>  3 files changed, 3 insertions(+), 1 deletion(-)

[...]



[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