]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Fix flexible_array.cocci warnings
authorkernel test robot <lkp@intel.com>
Sat, 22 Jan 2022 11:09:44 +0000 (12:09 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 24 Jan 2022 16:11:39 +0000 (17:11 +0100)
commita7c88781c13683bfc44255a60563d8c56142c1ee
tree4563f5479d7855233a11515ee8f11ac1dcb98664
parent66662f49affbb10e65c769ef4bffde939beb3bce
bpf: Fix flexible_array.cocci warnings

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: d21bf98ef4d2 ("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>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/bpf/alpine.DEB.2.22.394.2201221206320.12220@hadrien
net/bpf/test_run.c