summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2021-01-04 17:21:25 -0800
committerDan Williams <dan.j.williams@intel.com>2021-01-11 12:56:49 -0800
commit637464c59e0bb13a1da6abf1d7c4b9f9c01646d2 (patch)
tree1a31b2f741a0dfdd50a1cd53eef73401f856557e /drivers/nvdimm
parent7c53f6b671f4aba70ff15e1b05148b10d58c2837 (diff)
downloadlinux-637464c59e0bb13a1da6abf1d7c4b9f9c01646d2.tar.bz2
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 <efremov@linux.com> Reported-by: kernel test robot <lkp@intel.com> Reported-by: Julia Lawall <julia.lawall@inria.fr> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm')
0 files changed, 0 insertions, 0 deletions