nouveau/svm: Replace one-element array with flexible-array member in struct nouveau_svm
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 16 Aug 2023 18:04:06 +0000 (12:04 -0600)
committerKees Cook <keescook@chromium.org>
Fri, 29 Sep 2023 18:19:43 +0000 (11:19 -0700)
commit6ad33b53c9b8a1c99bcd2fb96123d5d45bc88d7b
treefeb220f74933d7c93b123721dcb70573b36c9c67
parent4ae7f6320aeb599c10b057abe7fcfcc277532959
nouveau/svm: Replace one-element array with flexible-array member in struct nouveau_svm

One-element and zero-length arrays are deprecated. So, replace
one-element array in struct nouveau_svm with flexible-array member.

This results in no differences in binary output.

Link: https://github.com/KSPP/linux/issues/338
Signed-off-by: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/087a1c335228bd245192bbb2fb347c9af1be5750.1692208802.git.gustavoars@kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/gpu/drm/nouveau/nouveau_svm.c