diff options
author | Atul Raut <[email protected]> | 2023-08-23 14:27:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-08-23 16:34:02 +0200 |
commit | 1006ebe9f1b5dad6b9e8b34ca9b982cc8c16ccee (patch) | |
tree | df5ba3a3b610b2c54826a7af861dac0bea1e530d /scripts/generate_rust_analyzer.py | |
parent | c471245bd9f25152e398fb49f65cf6e1ed7febbd (diff) |
nvmem: u-boot-env:: Replace zero-length array with DECLARE_FLEX_ARRAY() helper
We are moving toward replacing zero-length arrays with C99 flexible-array
members since they are deprecated. Therefore, the new DECLARE_FLEX_ARRAY()
helper macro should be used to replace the zero-length array declaration.
This fixes warnings such as:
./drivers/nvmem/u-boot-env.c:50:9-13: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
Signed-off-by: Atul Raut <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions