aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorJustin Tee <[email protected]>2023-05-31 15:33:19 -0700
committerMartin K. Petersen <[email protected]>2023-06-07 21:20:21 -0400
commitbb26224ed47c8cf7a3507637deb43f9bd466225d (patch)
treeb6772069225e0b8a9b63cf37ca64da798b11c1d0 /scripts/generate_rust_analyzer.py
parent9c24f90f6a5f3ec0d782813ac5f211d411e4f542 (diff)
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 <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]> Co-developed-by: Kees Cook <[email protected]> Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Justin Tee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions