kernel_optimize_test/scripts/coccinelle/misc
Denis Efremov 7b36c1398f coccinelle: misc: add flexible_array.cocci script
One-element and zero-length arrays are deprecated [1]. Kernel
code should always use "flexible array members" instead, except
for existing uapi definitions.

The script warns about one-element and zero-length arrays in structs.

[1] commit 68e4cd17e2 ("docs: deprecated.rst: Add zero-length and
    one-element arrays")

Cc: Kees Cook <keescook@chromium.org>
Cc: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
2020-10-03 22:08:40 +02:00
..
add_namespace.cocci scripts: add dummy report mode to add_namespace.cocci 2020-07-10 14:19:58 +02:00
array_size_dup.cocci coccinelle: misc: add array_size_dup script to detect missed overflow checks 2020-08-04 22:46:58 +02:00
array_size.cocci
badty.cocci
boolconv.cocci
boolinit.cocci
boolreturn.cocci
bugon.cocci
cond_no_effect.cocci
cstptr.cocci
doubleinit.cocci
excluded_middle.cocci coccinelle: misc: add excluded_middle.cocci script 2020-09-21 19:45:46 +02:00
flexible_array.cocci coccinelle: misc: add flexible_array.cocci script 2020-10-03 22:08:40 +02:00
ifaddr.cocci
ifcol.cocci
irqf_oneshot.cocci
newline_in_nl_msg.cocci net: remove newlines in NL_SET_ERR_MSG_MOD 2020-05-07 17:56:14 -07:00
noderef.cocci
of_table.cocci
orplus.cocci
returnvar.cocci
semicolon.cocci
uninitialized_var.cocci coccinelle: misc: add uninitialized_var.cocci script 2020-09-05 19:13:28 +02:00
warn.cocci