diff options
author | Giovanni Cabiddu | 2020-06-03 18:33:46 +0100 |
---|---|---|
committer | Herbert Xu | 2020-06-18 17:26:42 +1000 |
commit | 07b048f41ac1222a781573ac1c18592401e4a2a3 (patch) | |
tree | 229d800b9734b00b6d01c92645c7b47e5d304c4c | |
parent | 59c14e5e0174a420628356ef6ef07c414c62fdd7 (diff) |
crypto: qat - remove packed attribute in etr structs
Remove packed attribute in adf_etr_bank_data and adf_etr_ring_data.
Fields in these structures are reordered in order to avoid holes.
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_transport_internal.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_transport_internal.h b/drivers/crypto/qat/qat_common/adf_transport_internal.h index df4c7195daae..c7faf4e2d302 100644 --- a/drivers/crypto/qat/qat_common/adf_transport_internal.h +++ b/drivers/crypto/qat/qat_common/adf_transport_internal.h @@ -15,32 +15,31 @@ struct adf_etr_ring_debug_entry { struct adf_etr_ring_data { void *base_addr; atomic_t *inflights; - spinlock_t lock; /* protects ring data struct */ adf_callback_fn callback; struct adf_etr_bank_data *bank; dma_addr_t dma_addr; + struct adf_etr_ring_debug_entry *ring_debug; + spinlock_t lock; /* protects ring data struct */ u16 head; u16 tail; u8 ring_number; u8 ring_size; u8 msg_size; - u8 reserved; - struct adf_etr_ring_debug_entry *ring_debug; -} __packed; +}; struct adf_etr_bank_data { struct adf_etr_ring_data rings[ADF_ETR_MAX_RINGS_PER_BANK]; struct tasklet_struct resp_handler; void __iomem *csr_addr; - struct adf_accel_dev *accel_dev; u32 irq_coalesc_timer; + u32 bank_number; u16 ring_mask; u16 irq_mask; spinlock_t lock; /* protects bank data struct */ + struct adf_accel_dev *accel_dev; struct dentry *bank_debug_dir; struct dentry *bank_debug_cfg; - u32 bank_number; -} __packed; +}; struct adf_etr_data { struct adf_etr_bank_data *banks; |