aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorDenis Efremov <[email protected]>2020-09-21 20:49:20 +0300
committerJulia Lawall <[email protected]>2020-10-03 22:08:40 +0200
commit7b36c1398fb63f9c38cc83dc75f143d2e5995062 (patch)
treec9d887a0ffdab1ff767dbea9b714ecab88693ffd /tools/perf/scripts/python/intel-pt-events.py
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 <[email protected]> Cc: Gustavo A. R. Silva <[email protected]> Signed-off-by: Denis Efremov <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions