Skip to content

Commit ed8ab02

Browse files
keesmartinkpetersen
authored andcommitted
scsi: megaraid_sas: struct MR_LD_VF_MAP: Replace 1-element arrays with flexible arrays
Replace the deprecated[1] use of a 1-element array in struct MR_LD_VF_MAP with a modern flexible array. No binary differences are present after this conversion. Link: KSPP#79 [1] Signed-off-by: Kees Cook <kees@kernel.org> Link: https://lore.kernel.org/r/20240711155823.work.778-kees@kernel.org Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 778d7cd commit ed8ab02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/megaraid/megaraid_sas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2473,7 +2473,7 @@ struct MR_LD_VF_MAP {
24732473
union MR_LD_REF ref;
24742474
u8 ldVfCount;
24752475
u8 reserved[6];
2476-
u8 policy[1];
2476+
u8 policy[];
24772477
};
24782478

24792479
struct MR_LD_VF_AFFILIATION {

0 commit comments

Comments
 (0)