scsi: 3w-9xxx: Use flexible array members to avoid struct padding
authorSamuel Holland <samuel@sholland.org>
Tue, 27 Apr 2021 23:59:13 +0000 (18:59 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 15 May 2021 22:01:33 +0000 (18:01 -0400)
commit44c5027bb5c8bbdc2aea2141dc32fe72c3f3988a
tree97cacee68418fb40a2b651470f43b2a5175d29f6
parent0edca4fc633ce223753c217f135a8036f516357b
scsi: 3w-9xxx: Use flexible array members to avoid struct padding

In preparation for removing the "#pragma pack(1)" from the driver, fix all
instances where a trailing array member could be replaced by a flexible
array member. Since a flexible array member has zero size, it introduces no
padding, whether or not the struct is packed.

Link: https://lore.kernel.org/r/20210427235915.39211-2-samuel@sholland.org
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/3w-9xxx.c
drivers/scsi/3w-9xxx.h