Commit c40819f2 authored by Julia Lawall's avatar Julia Lawall Committed by Mike Snitzer

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: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarJulia Lawall <julia.lawall@inria.fr>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 4edbe1d7
......@@ -73,7 +73,7 @@ struct wc_memory_superblock {
};
__le64 padding[8];
};
struct wc_memory_entry entries[0];
struct wc_memory_entry entries[];
};
struct wc_entry {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment