Revision 7206d58a3a538c80b36305d1904de313cf47ef4c authored by Gustavo A. R. Silva on 27 October 2020, 06:33:56 UTC, committed by Gustavo A. R. Silva on 30 October 2020, 21:57:42 UTC
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://www.kernel.org/doc/html/v5.9/process/deprecated.html#zero-length-and-one-element-arrays

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
1 parent 2905620
History
File Mode Size
.gitignore -rw-r--r-- 103 bytes
Kconfig -rw-r--r-- 14.1 KB
Makefile -rw-r--r-- 1016 bytes
adummy.c -rw-r--r-- 4.1 KB
ambassador.c -rw-r--r-- 65.1 KB
ambassador.h -rw-r--r-- 15.0 KB
atmtcp.c -rw-r--r-- 11.5 KB
eni.c -rw-r--r-- 61.0 KB
eni.h -rw-r--r-- 4.6 KB
firestream.c -rw-r--r-- 53.3 KB
firestream.h -rw-r--r-- 13.9 KB
fore200e.c -rw-r--r-- 82.8 KB
fore200e.h -rw-r--r-- 38.1 KB
he.c -rw-r--r-- 76.1 KB
he.h -rw-r--r-- 19.8 KB
horizon.c -rw-r--r-- 81.2 KB
horizon.h -rw-r--r-- 16.0 KB
idt77105.c -rw-r--r-- 11.2 KB
idt77105.h -rw-r--r-- 3.8 KB
idt77252.c -rw-r--r-- 89.4 KB
idt77252.h -rw-r--r-- 33.6 KB
idt77252_tables.h -rw-r--r-- 45.0 KB
iphase.c -rw-r--r-- 107.6 KB
iphase.h -rw-r--r-- 53.4 KB
lanai.c -rw-r--r-- 80.3 KB
midway.h -rw-r--r-- 7.6 KB
nicstar.c -rw-r--r-- 72.3 KB
nicstar.h -rw-r--r-- 22.9 KB
nicstarmac.c -rw-r--r-- 6.0 KB
nicstarmac.copyright -rw-r--r-- 2.7 KB
solos-attrlist.c -rw-r--r-- 2.3 KB
solos-pci.c -rw-r--r-- 38.8 KB
suni.c -rw-r--r-- 9.8 KB
suni.h -rw-r--r-- 9.8 KB
tonga.h -rw-r--r-- 733 bytes
uPD98401.h -rw-r--r-- 11.7 KB
uPD98402.c -rw-r--r-- 6.5 KB
uPD98402.h -rw-r--r-- 4.5 KB
zatm.c -rw-r--r-- 43.2 KB
zatm.h -rw-r--r-- 3.6 KB
zeprom.h -rw-r--r-- 983 bytes

back to top