diff options
| author | Dan Williams <[email protected]> | 2021-01-05 01:21:25 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2021-01-11 20:56:49 +0000 |
| commit | 637464c59e0bb13a1da6abf1d7c4b9f9c01646d2 (patch) | |
| tree | 1a31b2f741a0dfdd50a1cd53eef73401f856557e /drivers/usb/cdns3/cdns3-imx.c | |
| parent | Linux 5.11-rc3 (diff) | |
| download | kernel-637464c59e0bb13a1da6abf1d7c4b9f9c01646d2.tar.gz kernel-637464c59e0bb13a1da6abf1d7c4b9f9c01646d2.zip | |
ACPI: NFIT: Fix flexible_array.cocci warnings
Julia and 0day report:
Zero-length and one-element arrays are deprecated, see
Documentation/process/deprecated.rst
Flexible-array members should be used instead.
However, a straight conversion to flexible arrays yields:
drivers/acpi/nfit/core.c:2276:4: error: flexible array member in a struct with no named members
drivers/acpi/nfit/core.c:2287:4: error: flexible array member in a struct with no named members
Instead, just use plain arrays not embedded flexible arrays.
Cc: Denis Efremov <[email protected]>
Reported-by: kernel test robot <[email protected]>
Reported-by: Julia Lawall <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
