aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorJames Seo <[email protected]>2023-08-06 10:05:58 -0700
committerMartin K. Petersen <[email protected]>2023-11-15 08:52:02 -0500
commit1f1126609969496bec23c366f83d843db6d7854c (patch)
tree05269c950867c81fba9406a806c193248a388961 /scripts/bpf_doc.py
parente249a957ce43b7da365ea0bddbeaec04e4cc3ad0 (diff)
scsi: mpt3sas: Make MPI26_CONFIG_PAGE_PIOUNIT_1::PhyData[] a flexible array
This terminal 1-length variable array can be directly converted into a C99 flexible array member. As all users of MPI26_CONFIG_PAGE_PIOUNIT_1 (Mpi26PCIeIOUnitPage1_t) do not use PhyData[], no further source changes are required to accommodate its reduced sizeof(): - mpt3sas_config.c:mpt3sas_config_get_pcie_iounit_pg1() fetches a Mpi26PCIeIOUnitPage1_t into a caller-provided buffer, and may fetch and write PhyData[] into that buffer depending on its sz argument. It has one caller: - mpt3sas_base.c:_base_assign_fw_reported_qd() passes sizeof(Mpi26PCIeIOUnitPage1_t) as sz, but does not use PhyData[]. Signed-off-by: James Seo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Tested-by: Borislav Petkov (AMD) <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions