summaryrefslogtreecommitdiff
path: root/drivers/scsi/3w-9xxx.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2021-04-27 18:59:14 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2021-05-15 18:01:33 -0400
commitd133b441488d30b0ee1848238a1f6e8da643e19c (patch)
treed4225460607bdab31003d3dcd5c204954e93b989 /drivers/scsi/3w-9xxx.c
parent44c5027bb5c8bbdc2aea2141dc32fe72c3f3988a (diff)
scsi: 3w-9xxx: Reduce scope of structure packing
Currently, all command packet structs used by this driver are packed. However, only one (TW_SG_Entry) actually needs to be packed, because it uses 64-bit addresses at 32-bit alignment. To improve the quality of generated code, stop packing all of the other command packet structs. This requires adjusting the type of one misaligned "reserved" member. After this change, pahole reports that only one type had its layout change: the tw_compat_info member of TW_Device_Extension is now naturally aligned. Link: https://lore.kernel.org/r/20210427235915.39211-3-samuel@sholland.org Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/3w-9xxx.c')
0 files changed, 0 insertions, 0 deletions