1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

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>
This commit is contained in:
Thorsten Blum 2025-01-07 11:43:42 +01:00 committed by Matt Turner
parent 3b35a17106
commit 757f051a50

View file

@ -135,7 +135,7 @@ struct crb_struct {
/* virtual->physical map */
unsigned long map_entries;
unsigned long map_pages;
struct vf_map_struct map[1];
struct vf_map_struct map[];
};
struct memclust_struct {