Content-Type: multipart/mixed; boundary="===============6260138832425853719==" MIME-Version: 1.0 From: Julia Lawall To: kbuild-all@lists.01.org Subject: [PATCH bpf-next] bpf: fix flexible_array.cocci warnings Date: Sat, 22 Jan 2022 12:09:44 +0100 Message-ID: List-Id: --===============6260138832425853719== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot 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 Signed-off-by: kernel test robot Signed-off-by: Julia Lawall CC: Kumar Kartikeya Dwivedi --- url: https://github.com/0day-ci/linux/commits/Kumar-Kartikeya-Dwivedi/In= troduce-unstable-CT-lookup-helpers/20220115-004219 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git ma= ster :::::: branch date: 8 days ago :::::: commit date: 8 days ago test_run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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) --===============6260138832425853719==--