crypto: qat - Pack cfg ctl structs
authorAtta, Ahsan <ahsan.atta@intel.com>
Mon, 11 Jan 2016 15:23:47 +0000 (15:23 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 Jan 2016 14:39:02 +0000 (22:39 +0800)
-This is required to support 32bit adf_ctl
 utility on a 64bit driver

Signed-off-by: Ahsan Atta <ahsan.atta@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_cfg_user.h

index ef5988afd4c60f59287e8a446af62e8ac6b783b9..b5484bfa699609d6b572a4e820c854a52802dbc9 100644 (file)
@@ -58,7 +58,7 @@ struct adf_user_cfg_key_val {
                uint64_t padding3;
        };
        enum adf_cfg_val_type type;
-};
+} __packed;
 
 struct adf_user_cfg_section {
        char name[ADF_CFG_MAX_SECTION_LEN_IN_BYTES];
@@ -70,7 +70,7 @@ struct adf_user_cfg_section {
                struct adf_user_cfg_section *next;
                uint64_t padding3;
        };
-};
+} __packed;
 
 struct adf_user_cfg_ctl_data {
        union {
@@ -78,5 +78,5 @@ struct adf_user_cfg_ctl_data {
                uint64_t padding;
        };
        uint8_t device_id;
-};
+} __packed;
 #endif