kernel-hacking-2024-linux-s.../drivers/w1
Gustavo A. R. Silva 76fafbfffb w1: 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:32 -05:00
..
masters
slaves
Kconfig
Makefile
w1.c
w1_family.c
w1_int.c
w1_internal.h
w1_io.c
w1_netlink.c
w1_netlink.h w1: Replace zero-length array with flexible-array 2020-06-15 23:08:32 -05:00