Skip to content

Commit 5458414

Browse files
gcabidduherbertx
authored andcommitted
crypto: qat - fix initialization of pfvf cap_msg structures
Initialize fully the structures cap_msg containing the device capabilities from the host. This is to fix the following warning when compiling the QAT driver using the clang compiler with CC=clang W=2: drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c:99:44: warning: missing field 'ext_dc_caps' initializer [-Wmissing-field-initializers] struct capabilities_v3 cap_msg = { { 0 }, }; ^ Fixes: 851ed49 ("crypto: qat - exchange device capabilities over PFVF") Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent c700216 commit 5458414

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int adf_vf2pf_request_version(struct adf_accel_dev *accel_dev)
9696
int adf_vf2pf_get_capabilities(struct adf_accel_dev *accel_dev)
9797
{
9898
struct adf_hw_device_data *hw_data = accel_dev->hw_device;
99-
struct capabilities_v3 cap_msg = { { 0 }, };
99+
struct capabilities_v3 cap_msg = { 0 };
100100
unsigned int len = sizeof(cap_msg);
101101

102102
if (accel_dev->vf.pf_compat_ver < ADF_PFVF_COMPAT_CAPABILITIES)

0 commit comments

Comments
 (0)