dlm: replace one-element array with fixed size array
authorPaulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Tue, 11 Oct 2022 20:23:14 +0000 (09:23 +1300)
committerDavid Teigland <teigland@redhat.com>
Tue, 8 Nov 2022 18:58:47 +0000 (12:58 -0600)
commitd96d0f9617793b6cd95b9b9a8fef66f69f8f6b1b
treefbde3950c659be700017a5e9a515c29c10a79c5a
parentf0c4d9fc9cc9462659728d168387191387e903cc
dlm: replace one-element array with fixed size array

One-element arrays are deprecated. So, replace one-element array with
fixed size array member in struct dlm_ls, and refactor the rest of the
code, accordingly.

Link: https://github.com/KSPP/linux/issues/79
Link: https://github.com/KSPP/linux/issues/228
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836
Link: https://lore.kernel.org/lkml/Y0W5jkiXUkpNl4ap@mail.google.com/
Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dlm_internal.h
fs/dlm/lockspace.c