Skip to content

Commit

Permalink
dm writecache: fix flexible_array.cocci warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
JuliaLawall authored and snitm committed Mar 4, 2021
1 parent df7b59b commit e07ba3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-writecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e07ba3c

Please sign in to comment.