Re: [PATCH net-next 3/3] samples/bpf: check before defining offsetof

2017-04-25 Thread Alexander Alemayhu
On Tue, Apr 25, 2017 at 02:27:16PM +, David Laight wrote: > > Isn't the correct fix to include stddef.h ? > If you think it's the correct fix, please send a patch to netdev. Thanks. -- Mit freundlichen Grüßen Alexander Alemayhu

RE: [PATCH net-next 3/3] samples/bpf: check before defining offsetof

2017-04-25 Thread David Laight
From: Daniel Borkmann > Sent: 24 April 2017 15:41 > To: Alexander Alemayhu; netdev@vger.kernel.org > Cc: a...@fb.com > Subject: Re: [PATCH net-next 3/3] samples/bpf: check before defining offsetof > > On 04/24/2017 03:31 PM, Alexander Alemayhu wrote: > > Fix

Re: [PATCH net-next 3/3] samples/bpf: check before defining offsetof

2017-04-24 Thread Daniel Borkmann
On 04/24/2017 03:31 PM, Alexander Alemayhu wrote: Fixes the following warning samples/bpf/test_lru_dist.c:28:0: warning: "offsetof" redefined #define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) In file included from ./tools/lib/bpf/bpf.h:25:0, from samples/bpf/libb

[PATCH net-next 3/3] samples/bpf: check before defining offsetof

2017-04-24 Thread Alexander Alemayhu
Fixes the following warning samples/bpf/test_lru_dist.c:28:0: warning: "offsetof" redefined #define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) In file included from ./tools/lib/bpf/bpf.h:25:0, from samples/bpf/libbpf.h:5, from samples/bpf/test_lru_dis