diff options
author | 2021-04-27 18:59:13 -0500 | |
---|---|---|
committer | 2021-05-15 18:01:33 -0400 | |
commit | 44c5027bb5c8bbdc2aea2141dc32fe72c3f3988a (patch) | |
tree | 97cacee68418fb40a2b651470f43b2a5175d29f6 /drivers/target/target_core_user.c | |
parent | scsi: be2iscsi: Remove redundant initialization (diff) | |
download | wireguard-linux-44c5027bb5c8bbdc2aea2141dc32fe72c3f3988a.tar.xz wireguard-linux-44c5027bb5c8bbdc2aea2141dc32fe72c3f3988a.zip |
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>
Diffstat (limited to 'drivers/target/target_core_user.c')
0 files changed, 0 insertions, 0 deletions