OSDN Git Service

crypto: qat - fix initialization of pfvf rts_map_msg structures
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Fri, 4 Mar 2022 18:03:56 +0000 (18:03 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 9 Mar 2022 03:12:32 +0000 (15:12 +1200)
commit44dbd0c61bf1480be55dbb0cac793d861d1957b9
tree06afc86942682b63715e6c75d9f7df76da3b4b66
parent54584146cc8cb49ce471011d4afcc03a8a529463
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: e1b176af3d7e ("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>
drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c