Re: [PATCH bpf-next] libbpf: fix BTF-defined map's __type macro handling of arrays

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

 



On Fri, Oct 4, 2019 at 1:10 AM Andrii Nakryiko <andriin@xxxxxx> wrote:
>
> Due to a quirky C syntax of declaring pointers to array or function
> prototype, existing __type() macro doesn't work with map key/value types
> that are array or function prototype. One has to create a typedef first
> and use it to specify key/value type for a BPF map.  By using typeof(),
> pointer to type is now handled uniformly for all kinds of types. Convert
> one of self-tests as a demonstration.
>
> Signed-off-by: Andrii Nakryiko <andriin@xxxxxx>

Applied. 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