Messages in this thread | | | Subject | Re: [PATCH] scsi: lpfc: Use struct_group to isolate cast to larger object | From | "Martin K. Petersen" <> | Date | Mon, 13 Dec 2021 23:31:59 -0500 |
| |
Kees,
> When building under -Warray-bounds, a warning is generated when casting > a u32 into MAILBOX_t (which is larger). This warning is conservative, but > it's not an unreasonable change to make to improve future robustness. Use > a tagged struct_group that can refer to either the specific fields or > the first u32 separately, silencing this warning:
Applied to 5.17/scsi-staging, thanks!
-- Martin K. Petersen Oracle Linux Engineering
| |