summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorZhang Kunbo <zhangkunbo@huawei.com>2024-12-18 10:45:52 +0300
committerFelix Fietkau <nbd@nbd.name>2025-01-14 15:34:36 +0300
commit8ad8b8c2dc87fc3d34921330827914c7f2d74466 (patch)
tree26f2e5e4b3683baf6f27b7de6d63cc7a686d7401 /tools/perf/scripts/python/export-to-postgresql.py
parent5190594bcec2221fbc66638789546c681efe82de (diff)
downloadlinux-8ad8b8c2dc87fc3d34921330827914c7f2d74466.tar.xz
wifi: mt76: mt7925: replace zero-length array with flexible-array member
The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a flexible array member[1], introduced in C99: struct foo { int stuff; struct boo array[]; }; By making use of the mechanism above, we will get a compiler warning in case the flexible array does not occur last, which is beneficial to cultivate a high-quality code.[2] This issue was found with the help of Coccinelle. [1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html [2] commit 76497732932f ("cxgb3/l2t: Fix undefined behaviour") Signed-off-by: Zhang Kunbo <zhangkunbo@huawei.com> Link: https://patch.msgid.link/20241218074552.3271542-1-zhangkunbo@huawei.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions