Skip to content

Commit 44dbd0c

Browse files
gcabidduherbertx
authored andcommitted
crypto: qat - fix initialization of pfvf rts_map_msg structures
Initialize fully the structures rts_map_msg containing the ring to service map 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:144:51: warning: missing field 'map' initializer [-Wmissing-field-initializers] struct ring_to_svc_map_v1 rts_map_msg = { { 0 }, }; ^ Fixes: e1b176a ("crypto: qat - exchange ring-to-service mappings over PFVF") Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 5458414 commit 44dbd0c

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
@@ -141,7 +141,7 @@ int adf_vf2pf_get_capabilities(struct adf_accel_dev *accel_dev)
141141

142142
int adf_vf2pf_get_ring_to_svc(struct adf_accel_dev *accel_dev)
143143
{
144-
struct ring_to_svc_map_v1 rts_map_msg = { { 0 }, };
144+
struct ring_to_svc_map_v1 rts_map_msg = { 0 };
145145
unsigned int len = sizeof(rts_map_msg);
146146

147147
if (accel_dev->vf.pf_compat_ver < ADF_PFVF_COMPAT_RING_TO_SVC_MAP)

0 commit comments

Comments
 (0)