Skip to content

Commit 3f58d49

Browse files
Snape3058nashif
authored andcommitted
soc: mec172x: ecia: Adjust girq_regs to avoid flexible-array-like behaviors
Struct girq_regs has an array field of length 1 at its end. Since this field is never used in the code base, we can replace it with a non-array field of its original element type to remove the flexible-array-like behaviors and avoid using a flexible array file in the middle of a struct or defining an array of flexible array struct type. Fixes #84251 Signed-off-by: Ella MA <xutong.ma@inria.fr>
1 parent 7c14d7e commit 3f58d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/microchip/mec/mec172x/reg/mec172x_ecia.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ struct girq_regs {
11321132
volatile uint32_t EN_SET;
11331133
volatile uint32_t RESULT;
11341134
volatile uint32_t EN_CLR;
1135-
uint32_t RSVD1[1];
1135+
volatile uint32_t RSVD1;
11361136
};
11371137

11381138
/** @brief ECIA registers with each GIRQ elucidated */

0 commit comments

Comments
 (0)