Home
last modified time | relevance | path

Searched hist:aa4db51bbd51654e215905f384eecf22327bafa9 (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/scsi/mpt3sas/mpi/
H A Dmpi2_image.hdiff aa4db51bbd51654e215905f384eecf22327bafa9 Sun Aug 06 19:05:53 CEST 2023 James Seo <james@equiv.tech> scsi: mpt3sas: Use flexible arrays when obviously possible

These terminal 1-length variable arrays can be directly converted into C99
flexible array members without any binary changes.

In most cases, they belong to unused structs, or to structs used only by
unused code. The remaining few coincidentally have their sizes calculated
in roundabout ways that do not depend on the sizeof() their structs.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Seo <james@equiv.tech>
Link: https://lore.kernel.org/r/20230806170604.16143-2-james@equiv.tech
Tested-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
H A Dmpi2_ioc.hdiff aa4db51bbd51654e215905f384eecf22327bafa9 Sun Aug 06 19:05:53 CEST 2023 James Seo <james@equiv.tech> scsi: mpt3sas: Use flexible arrays when obviously possible

These terminal 1-length variable arrays can be directly converted into C99
flexible array members without any binary changes.

In most cases, they belong to unused structs, or to structs used only by
unused code. The remaining few coincidentally have their sizes calculated
in roundabout ways that do not depend on the sizeof() their structs.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Seo <james@equiv.tech>
Link: https://lore.kernel.org/r/20230806170604.16143-2-james@equiv.tech
Tested-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
H A Dmpi2_cnfg.hdiff aa4db51bbd51654e215905f384eecf22327bafa9 Sun Aug 06 19:05:53 CEST 2023 James Seo <james@equiv.tech> scsi: mpt3sas: Use flexible arrays when obviously possible

These terminal 1-length variable arrays can be directly converted into C99
flexible array members without any binary changes.

In most cases, they belong to unused structs, or to structs used only by
unused code. The remaining few coincidentally have their sizes calculated
in roundabout ways that do not depend on the sizeof() their structs.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Seo <james@equiv.tech>
Link: https://lore.kernel.org/r/20230806170604.16143-2-james@equiv.tech
Tested-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>