summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-01-07 11:43:42 +0100
committerMatt Turner <mattst88@gmail.com>2025-02-14 14:06:15 -0500
commit757f051a506198186d796dff4ba696adb7bda54c (patch)
treea170923dc87d7ddc3935b6438a312aa74418e11d
parent3b35a171060f846b08b48646b38c30b5d57d17ff (diff)
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>
-rw-r--r--arch/alpha/include/asm/hwrpb.h2
1 files changed, 1 insertions, 1 deletions
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 {