From: Gustavo A. R. Silva Date: Wed, 2 Aug 2023 13:25:56 +0000 (-0600) Subject: alpha: Replace one-element array with flexible-array member X-Git-Tag: v6.6.17~3870^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=967afdf808cf66908a55c55b8ec5937cc20676ce;p=platform%2Fkernel%2Flinux-rpi.git alpha: Replace one-element array with flexible-array member One-element and zero-length arrays are deprecated. So, replace one-element array in struct osf_dirent with flexible-array member. This results in no differences in binary output. Signed-off-by: "Gustavo A. R. Silva" Link: https://lore.kernel.org/r/ZMpZZBShlLqyD3ax@work Signed-off-by: Kees Cook --- diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index d98701e..5db88b6 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -97,7 +97,7 @@ struct osf_dirent { unsigned int d_ino; unsigned short d_reclen; unsigned short d_namlen; - char d_name[1]; + char d_name[]; }; struct osf_dirent_callback {