]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: qat - fix initialization of pfvf cap_msg structures
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Fri, 4 Mar 2022 18:03:55 +0000 (18:03 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 9 Mar 2022 03:12:32 +0000 (15:12 +1200)
commitb3b1d57f77a6a9879969882d74582f0bc00b923c
tree06a7234fa19b0f1e4bfc1243ef2b3b8a2c861bdd
parent61ed1b109dfc12ab8f3400b866a33cc757d74839
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: 82be3ccd3179 ("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>
drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c