linux-stable/drivers/net/can/peak_canfd
Gustavo A. R. Silva 12033457bf can: peak_canfd: Replace zero-length array with flexible-array
There is a regular need in the kernel to provide a way to declare having a
dynamically sized set of trailing elements in a structure. Kernel code should
always use “flexible array members”[1] for these cases. The older style of
one-element or zero-length arrays should no longer be used[2].

[1] https://en.wikipedia.org/wiki/Flexible_array_member
[2] https://github.com/KSPP/linux/issues/21

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
2020-06-15 23:08:31 -05:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
peak_canfd.c can: peak_canfd: provide hw timestamps in rx skbs 2019-11-11 21:58:09 +01:00
peak_canfd_user.h can: peak_canfd: fix checkpatch warnings 2019-11-11 21:58:08 +01:00
peak_pciefd_main.c can: peak_canfd: Replace zero-length array with flexible-array 2020-06-15 23:08:31 -05:00