Re: [PATCH v2 00/12] scsi: mpt3sas: Use flexible arrays and do a few cleanups
From: Martin K. Petersen
Date: Thu Aug 24 2023 - 23:08:39 EST
> Commit df8fc4e934c1 ("kbuild: Enable -fstrict-flex-arrays=3") has
> resulted in the only arrays that UBSAN_BOUNDS considers unbounded
> being trailing arrays declared with [] as the last member of a struct.
> Unbounded trailing arrays declared with [1] are common in mpt3sas,
> which is causing spurious warnings to appear in some situations, e.g.
> when more than one physical disk is connected:
Broadcom: Please review/test. Thanks!
--
Martin K. Petersen Oracle Linux Engineering