Home
last modified time | relevance | path

Searched hist:"492 baeb9" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/i2c/
H A Di2c-core-acpi.c492baeb9 Mon Sep 26 16:47:25 CDT 2022 Gustavo A. R. Silva <gustavoars@kernel.org> i2c: acpi: Replace zero-length array with DECLARE_FLEX_ARRAY() helper

Zero-length arrays are deprecated and we are moving towards adopting
C99 flexible-array members, instead. So, replace zero-length arrays
declarations in anonymous union with the new DECLARE_FLEX_ARRAY()
helper macro.

This helper allows for flexible-array members in unions.

Link: https://github.com/KSPP/linux/issues/193
Link: https://github.com/KSPP/linux/issues/218
Link: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>