On Sat, 22 Jan 2022 at 14:55, Julia Lawall <julia.lawall(a)inria.fr> wrote:
From: kernel test robot <lkp(a)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
CC: Kumar Kartikeya Dwivedi <memxor(a)gmail.com>
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: Julia Lawall <julia.lawall(a)inria.fr>
---
url:
https://github.com/0day-ci/linux/commits/Kumar-Kartikeya-Dwivedi/Introduc...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
:::::: branch date: 8 days ago
:::::: commit date: 8 days ago
Since this is a test, I don't know if you want to change it.
We can definitely change it. It is just used for testing a type check
in the verifier. Please resend this to bpf(a)vger.kernel.org, with
[PATCH bpf-next] in subject, and use bpf: as prefix instead of
selftests/bpf:, and add a Fixes: tag for the commit in bpf-next
introducing it
Fixes: c1ff181ffabc ("selftests/bpf: Extend kfunc selftests")
>
> 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)