Skip to contentSkip to conversation

alpha: Replace one-element array with flexible array member

PATCH RESEND Superseded Thorsten Blum 1 participant 1 message Dec 9, 2024 Alpha port

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 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.

---
 arch/alpha/include/asm/hwrpb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/alpha/include/asm/hwrpb.h +1 -1
index fc76f36265ad..db831cf8de10 100644
@@ -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 {
Signature · 1 line
2.47.1