Skip to content

Commit 757f051

Browse files
tobluxmattst88
authored andcommitted
alpha: Replace one-element array with flexible array member
Replace the deprecated one-element array with a modern flexible array member in the struct crb_struct. Reviewed-by: Kees Cook <kees@kernel.org> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Matt Turner <mattst88@gmail.com>
1 parent 3b35a17 commit 757f051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/alpha/include/asm/hwrpb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ struct crb_struct {
135135
/* virtual->physical map */
136136
unsigned long map_entries;
137137
unsigned long map_pages;
138-
struct vf_map_struct map[1];
138+
struct vf_map_struct map[];
139139
};
140140

141141
struct memclust_struct {

0 commit comments

Comments
 (0)