From: Thorsten Blum Date: Tue, 7 Jan 2025 10:43:42 +0000 (+0100) Subject: alpha: Replace one-element array with flexible array member X-Git-Tag: v6.14-rc3~19^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=757f051a506198186d796dff4ba696adb7bda54c;p=linux-block.git 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 Signed-off-by: Thorsten Blum Signed-off-by: Matt Turner --- diff --git a/arch/alpha/include/asm/hwrpb.h b/arch/alpha/include/asm/hwrpb.h index fc76f36265ad..db831cf8de10 100644 --- a/arch/alpha/include/asm/hwrpb.h +++ b/arch/alpha/include/asm/hwrpb.h @@ -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 {