* [BUG] bpf is broken in net-next
@ 2017-10-01 21:02 Stephen Hemminger
2017-10-02 1:34 ` Alexei Starovoitov
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2017-10-01 21:02 UTC (permalink / raw)
To: Martin KaFai Lau; +Cc: netdev
Recent regression in net-next building bpf.c in samples/bpf now broken.
$ make samples/bpf/
HOSTCC samples/bpf/../../tools/lib/bpf/bpf.o
samples/bpf/../../tools/lib/bpf/bpf.c: In function ‘bpf_create_map_node’:
samples/bpf/../../tools/lib/bpf/bpf.c:76:13: error: ‘union bpf_attr’ has no member named ‘map_name’; did you mean ‘map_type’?
memcpy(attr.map_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
^
samples/bpf/../../tools/lib/bpf/bpf.c:76:44: error: ‘BPF_OBJ_NAME_LEN’ undeclared (first use in this function)
memcpy(attr.map_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
^
samples/bpf/../../tools/lib/bpf/bpf.c:49:27: note: in definition of macro ‘min’
#define min(x, y) ((x) < (y) ? (x) : (y))
^
samples/bpf/../../tools/lib/bpf/bpf.c:76:44: note: each undeclared identifier is reported only once for each function it appears in
memcpy(attr.map_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
^
samples/bpf/../../tools/lib/bpf/bpf.c:49:27: note: in definition of macro ‘min’
#define min(x, y) ((x) < (y) ? (x) : (y))
^
samples/bpf/../../tools/lib/bpf/bpf.c: In function ‘bpf_create_map_in_map_node’:
samples/bpf/../../tools/lib/bpf/bpf.c:116:13: error: ‘union bpf_attr’ has no member named ‘map_name’; did you mean ‘map_type’?
memcpy(attr.map_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
^
samples/bpf/../../tools/lib/bpf/bpf.c:116:44: error: ‘BPF_OBJ_NAME_LEN’ undeclared (first use in this function)
memcpy(attr.map_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
^
samples/bpf/../../tools/lib/bpf/bpf.c:49:27: note: in definition of macro ‘min’
#define min(x, y) ((x) < (y) ? (x) : (y))
^
samples/bpf/../../tools/lib/bpf/bpf.c: In function ‘bpf_load_program_name’:
samples/bpf/../../tools/lib/bpf/bpf.c:154:13: error: ‘union bpf_attr’ has no member named ‘prog_name’; did you mean ‘prog_type’?
memcpy(attr.prog_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
^
samples/bpf/../../tools/lib/bpf/bpf.c:154:45: error: ‘BPF_OBJ_NAME_LEN’ undeclared (first use in this function)
memcpy(attr.prog_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
^
samples/bpf/../../tools/lib/bpf/bpf.c:49:27: note: in definition of macro ‘min’
#define min(x, y) ((x) < (y) ? (x) : (y))
^
scripts/Makefile.host:118: recipe for target 'samples/bpf/../../tools/lib/bpf/bpf.o' failed
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] bpf is broken in net-next
2017-10-01 21:02 [BUG] bpf is broken in net-next Stephen Hemminger
@ 2017-10-02 1:34 ` Alexei Starovoitov
2017-10-02 14:52 ` Stephen Hemminger
0 siblings, 1 reply; 3+ messages in thread
From: Alexei Starovoitov @ 2017-10-02 1:34 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: Martin KaFai Lau, netdev
On Sun, Oct 01, 2017 at 02:02:30PM -0700, Stephen Hemminger wrote:
> Recent regression in net-next building bpf.c in samples/bpf now broken.
>
> $ make samples/bpf/
>
>
> HOSTCC samples/bpf/../../tools/lib/bpf/bpf.o
> samples/bpf/../../tools/lib/bpf/bpf.c: In function ‘bpf_create_map_node’:
> samples/bpf/../../tools/lib/bpf/bpf.c:76:13: error: ‘union bpf_attr’ has no member named ‘map_name’; did you mean ‘map_type’?
> memcpy(attr.map_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
> ^
> samples/bpf/../../tools/lib/bpf/bpf.c:76:44: error: ‘BPF_OBJ_NAME_LEN’ undeclared (first use in this function)
> memcpy(attr.map_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
everything works fine for me...
did you do 'make headers_install' ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] bpf is broken in net-next
2017-10-02 1:34 ` Alexei Starovoitov
@ 2017-10-02 14:52 ` Stephen Hemminger
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2017-10-02 14:52 UTC (permalink / raw)
To: Alexei Starovoitov; +Cc: Martin KaFai Lau, netdev
On Sun, 1 Oct 2017 18:34:25 -0700
Alexei Starovoitov <alexei.starovoitov@gmail.com> wrote:
> On Sun, Oct 01, 2017 at 02:02:30PM -0700, Stephen Hemminger wrote:
> > Recent regression in net-next building bpf.c in samples/bpf now broken.
> >
> > $ make samples/bpf/
> >
> >
> > HOSTCC samples/bpf/../../tools/lib/bpf/bpf.o
> > samples/bpf/../../tools/lib/bpf/bpf.c: In function ‘bpf_create_map_node’:
> > samples/bpf/../../tools/lib/bpf/bpf.c:76:13: error: ‘union bpf_attr’ has no member named ‘map_name’; did you mean ‘map_type’?
> > memcpy(attr.map_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
> > ^
> > samples/bpf/../../tools/lib/bpf/bpf.c:76:44: error: ‘BPF_OBJ_NAME_LEN’ undeclared (first use in this function)
> > memcpy(attr.map_name, name, min(name_len, BPF_OBJ_NAME_LEN - 1));
>
> everything works fine for me...
> did you do 'make headers_install' ?
>
Yes, that was the problem. I had done make mrproper after changing branches.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-02 14:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-01 21:02 [BUG] bpf is broken in net-next Stephen Hemminger
2017-10-02 1:34 ` Alexei Starovoitov
2017-10-02 14:52 ` Stephen Hemminger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.