summaryrefslogtreecommitdiff
path: root/ipc/shm.c
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2020-09-21 20:49:20 +0300
committerJulia Lawall <Julia.Lawall@lip6.fr>2020-10-03 22:08:40 +0200
commit7b36c1398fb63f9c38cc83dc75f143d2e5995062 (patch)
treec9d887a0ffdab1ff767dbea9b714ecab88693ffd /ipc/shm.c
parent44d8870f21529cfa8f50b503b5d949c6d46e6fc1 (diff)
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 68e4cd17e218 ("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>
Diffstat (limited to 'ipc/shm.c')
0 files changed, 0 insertions, 0 deletions