diff options
author | 2023-05-31 15:33:19 -0700 | |
---|---|---|
committer | 2023-06-07 21:20:21 -0400 | |
commit | bb26224ed47c8cf7a3507637deb43f9bd466225d (patch) | |
tree | b6772069225e0b8a9b63cf37ca64da798b11c1d0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | scsi: ufs: core: Combine ufshcd_mq_poll_cqe functions (diff) | |
download | wireguard-linux-bb26224ed47c8cf7a3507637deb43f9bd466225d.tar.xz wireguard-linux-bb26224ed47c8cf7a3507637deb43f9bd466225d.zip |
scsi: lpfc: Use struct_size() helper
Prefer struct_size() over open-coded versions of idiom:
sizeof(struct-with-flex-array) + sizeof(typeof-flex-array-elements) * count
where count is the max number of items the flexible array is supposed to
contain.
Link: https://github.com/KSPP/linux/issues/160
Co-developed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Co-developed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20230531223319.24328-1-justintee8345@gmail.com
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions