WSL2-Linux-Kernel/kernel/printk
Gustavo A. R. Silva a38283da05 printk: ringbuffer: Replace zero-length array with flexible-array member
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>
2020-10-30 16:57:42 -05:00
..
Makefile printk: add lockless ringbuffer 2020-07-10 08:48:19 +02:00
braille.c
braille.h
console_cmdline.h
internal.h printk: move dictionary keys to dev_printk_info 2020-09-22 11:27:48 +02:00
printk.c Merge branch 'printk-rework' into for-linus 2020-10-12 13:01:37 +02:00
printk_ringbuffer.c printk: ringbuffer: Replace zero-length array with flexible-array member 2020-10-30 16:57:42 -05:00
printk_ringbuffer.h printk: avoid and/or handle record truncation 2020-09-30 13:30:28 +02:00
printk_safe.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2020-10-15 15:11:56 -07:00