Skip to content

Commit 967afdf

Browse files
GustavoARSilvakees
authored andcommitted
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" <gustavoars@kernel.org> Link: https://lore.kernel.org/r/ZMpZZBShlLqyD3ax@work Signed-off-by: Kees Cook <keescook@chromium.org>
1 parent aa9f10d commit 967afdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/alpha/kernel/osf_sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ struct osf_dirent {
9797
unsigned int d_ino;
9898
unsigned short d_reclen;
9999
unsigned short d_namlen;
100-
char d_name[1];
100+
char d_name[];
101101
};
102102

103103
struct osf_dirent_callback {

0 commit comments

Comments
 (0)