Re: [PATCH] bpf:sample: fix field 'lock' has incomplete type in hbm.h

From: Eric Dumazet
Date: Thu Apr 04 2019 - 04:29:15 EST




On 04/04/2019 01:16 AM, Bo YU wrote:
> When compiling sample/bpf:
>
> samples/bpf/hbm.h:12:23: error: field âlockâ has incomplete type
> Âstruct bpf_spin_lock lock;
>
> Fixes: 187d0738ff35(bpf: Sample HBM BPF program to limit egress bw)
> Signed-off-by: Bo YU <tsu.yubo@xxxxxxxxx>
> ---

This patch makes absolutely no sense.

Please carefully read samples/bpf/README.rst