Re: [PATCH bpf] selftests/bpf: use proper type when passing prog_type

2018-12-10 Thread Daniel Borkmann
On 12/11/2018 12:25 AM, Stanislav Fomichev wrote: > Use bpf_prog_type instead of bpf_map_type when passing prog_type. > > -Wenum-conversion might be unhappy about it: > error: implicit conversion from enumeration type > 'enum bpf_map_type' to different enumeration type > 'enum bp

[PATCH bpf] selftests/bpf: use proper type when passing prog_type

2018-12-10 Thread Stanislav Fomichev
Use bpf_prog_type instead of bpf_map_type when passing prog_type. -Wenum-conversion might be unhappy about it: error: implicit conversion from enumeration type 'enum bpf_map_type' to different enumeration type 'enum bpf_prog_type' Signed-off-by: Stanislav Fomichev --- to