summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas.h
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2024-07-11 17:58:23 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2024-08-03 03:26:01 +0200
commited8ab02c85b3494ec81f35f12e01f6678af09f6a (patch)
tree5821019dd0f5927a40f71a70f41aa5f0fd0f780a /drivers/scsi/megaraid/megaraid_sas.h
parentMerge patch series "scsi: mpi3mr: Replace 1-element arrays with flexible arrays" (diff)
downloadlinux-ed8ab02c85b3494ec81f35f12e01f6678af09f6a.tar.xz
linux-ed8ab02c85b3494ec81f35f12e01f6678af09f6a.zip
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: https://github.com/KSPP/linux/issues/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>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h
index 5680c6cdb221..84cf77c48c0d 100644
--- a/drivers/scsi/megaraid/megaraid_sas.h
+++ b/drivers/scsi/megaraid/megaraid_sas.h
@@ -2473,7 +2473,7 @@ struct MR_LD_VF_MAP {
union MR_LD_REF ref;
u8 ldVfCount;
u8 reserved[6];
- u8 policy[1];
+ u8 policy[];
};
struct MR_LD_VF_AFFILIATION {