crypto: qat - add packed to init admin structures
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Mon, 12 Oct 2020 20:38:24 +0000 (21:38 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Oct 2020 06:34:49 +0000 (17:34 +1100)
Add packed attribute to the structures icp_qat_fw_init_admin_req and
icp_qat_fw_init_admin_resp as they are accessed by firmware.

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com>
Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/icp_qat_fw_init_admin.h

index d4d188cd7ed03692b19ada25a1a239f2813b6655..3868bcbed252421503b17e1cb3dbbf002e7beb4c 100644 (file)
@@ -39,7 +39,7 @@ struct icp_qat_fw_init_admin_req {
        };
 
        __u32 resrvd4;
-};
+} __packed;
 
 struct icp_qat_fw_init_admin_resp {
        __u8 flags;
@@ -92,7 +92,7 @@ struct icp_qat_fw_init_admin_resp {
                        __u64 resrvd8;
                };
        };
-};
+} __packed;
 
 #define ICP_QAT_FW_COMN_HEARTBEAT_OK 0
 #define ICP_QAT_FW_COMN_HEARTBEAT_BLOCKED 1