Re: [PATCH v2 bpf-next] tools/bpf: add missing strings.h include

2019-02-07 Thread Alexei Starovoitov
On Thu, Feb 07, 2019 at 11:29:24AM -0800, Andrii Nakryiko wrote: > Few files in libbpf are using bzero() function (defined in strings.h header), > but > don't include corresponding header. When libbpf is added as a dependency to > pahole, > this undeterministically causes warnings on some machine

[PATCH v2 bpf-next] tools/bpf: add missing strings.h include

2019-02-07 Thread Andrii Nakryiko
Few files in libbpf are using bzero() function (defined in strings.h header), but don't include corresponding header. When libbpf is added as a dependency to pahole, this undeterministically causes warnings on some machines: bpf.c:225:2: warning: implicit declaration of function ‘bzero’ [-Wimpl