Message ID | alpine.DEB.2.22.394.2201221206320.12220@hadrien (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | BPF |
Headers | show |
Series | [bpf-next] bpf: fix flexible_array.cocci warnings | expand |
On 1/22/22 12:09 PM, Julia Lawall wrote: > From: kernel test robot <lkp@intel.com> > > Zero-length and one-element arrays are deprecated, see > Documentation/process/deprecated.rst > Flexible-array members should be used instead. > > Generated by: scripts/coccinelle/misc/flexible_array.cocci > > Fixes: c1ff181ffabc ("selftests/bpf: Extend kfunc selftests") > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: kernel test robot <lkp@intel.com> > Signed-off-by: Julia Lawall <julia.lawall@inria.fr> > CC: Kumar Kartikeya Dwivedi <memxor@gmail.com> Applied, thanks!
--- a/net/bpf/test_run.c +++ b/net/bpf/test_run.c @@ -293,7 +293,7 @@ struct prog_test_fail2 { struct prog_test_fail3 { int len; char arr1[2]; - char arr2[0]; + char arr2[]; }; noinline void bpf_kfunc_call_test_pass_ctx(struct __sk_buff *skb)