dm writecache: fix flexible_array.cocci warnings
authorJulia Lawall <julia.lawall@inria.fr>
Wed, 10 Feb 2021 20:06:15 +0000 (21:06 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 26 Mar 2021 18:53:41 +0000 (14:53 -0400)
commitc40819f267f76e69418d3bc9fbb57962a6845673
tree423e30b065d13c44400f2b7c87b8291c1eac61b5
parent4edbe1d7bcffcd6269f3b5eb63f710393ff2ec7a
dm writecache: fix flexible_array.cocci warnings

Zero-length and one-element arrays are deprecated, see
Documentation/process/deprecated.rst
Flexible-array members should be used instead.

Generated by: scripts/coccinelle/misc/flexible_array.cocci

CC: Denis Efremov <efremov@linux.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c