Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2205001pxm; Fri, 4 Mar 2022 11:19:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYKVAT/vZStBnHyhQqS0J3cPpoLfUbvHATpUSml0h1fRYTwdEZ/f7nMf+JsoU8X/mMn4Xj X-Received: by 2002:a17:902:e841:b0:151:cd6e:e014 with SMTP id t1-20020a170902e84100b00151cd6ee014mr108214plg.18.1646421578161; Fri, 04 Mar 2022 11:19:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646421578; cv=none; d=google.com; s=arc-20160816; b=opPmiGpDf4bcY6IVhEyLEI9fb8r+L4lRKR4BWtoT+PSgkp/F/+yUeSxsOmKVqsJ6YU VvVVyKGueHkAXrX+tM11b+Y6r/QvPpBbJ23IF8HIQdl4HlXIuYt12KiU7Izbs+tJpzVv Qk4/QStH2WCWkRSsVLhvhW5viRMFkTkeZdmktNLyOphE0VsHcsQ+zh/WlDOf7SUBFJ6F m8DymhE2nkzsU4lSIVTWYs5VinnQLSCodUaJNBu12HaQfFX/y9PoPInlFqy8YD3DY5Rz XmpVQDNrrCfT1FUDCfr/z7BAsX4q2JoNDy5oflipowD2cclmURxWtLgSHTSwHx5g1DpU KSdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HJqIWfKEErAqZTsHeZMd2yghVm0iy6OjhY2crCRoW4g=; b=rZU8G9G+dJw+T/ZIO83+KHnnIySJi9mSe3x/lSpFhzY6qgByNqEVlI0hGGua6o+0xU wQJgTvzCJUMExKncNItg2KhAzmgopSNA2xlQphXNu3G+A0e2IvHwCjLG4/wAb+2cetub MLLGzDCAxvDl7uuDSbCjM2sdMTIfc/Y8ZRi2PzE9t6YAfTF2yfjlpcjB5pqmXmo7EEb/ cNX7VJd/kAi1g3M7fwkjcyqXR+07E44WrRITb8oJj7Du99GIx2pmzFY0M09R8QiQGuC1 9naeMqEqZ3i11ZZVZ1W4HxJiPLDnP/rjGHNwU4KIuPa3lNzFPBa0UxCtU+BmA+YYE8ND K6VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dOTMpNOe; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l13-20020a65448d000000b003786fc5b17csi5249217pgq.219.2022.03.04.11.19.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:19:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dOTMpNOe; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B4F8527F3; Fri, 4 Mar 2022 11:07:48 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237615AbiCDSEy (ORCPT + 99 others); Fri, 4 Mar 2022 13:04:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241326AbiCDSEx (ORCPT ); Fri, 4 Mar 2022 13:04:53 -0500 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD35A344D1 for ; Fri, 4 Mar 2022 10:04:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646417042; x=1677953042; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KDiOeqqzLqnUJ1asjs6bG87cJ8MRdG1jOuQFe3pblsE=; b=dOTMpNOeoWTGDSgrSKb9I7wDHcs9dge99k/3jPNbcGoT9a4HBjJpg4cM Goxuj61OUo0CCOrs6/f/P3xnhluNJTJb7/ZGtl24LJQsmq7sUIjY12YrG tfV5XEYKSG3HKyK05z8IQRr9222p3+jEzPCjBugdjaW2W53qvJq4qRn5i yF27IBc8JD2n7HQtKuAW8LdoDJugeMBIFdE14uTEH0tet8PVs6IMGBwHs 9OlrfNdbaF1V/CIRtjvzInBduRppBgamzv/CQYVd5WU5nWxjNe7hnYHVF tyaJtG4k2kPteXlYgYhxrV01IlYcRzsa8zRwEWucH/NZlm+KPSNZ24psu A==; X-IronPort-AV: E=McAfee;i="6200,9189,10276"; a="314744414" X-IronPort-AV: E=Sophos;i="5.90,155,1643702400"; d="scan'208";a="314744414" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 10:04:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,155,1643702400"; d="scan'208";a="552308548" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314.ger.corp.intel.com) ([10.237.222.76]) by orsmga008.jf.intel.com with ESMTP; 04 Mar 2022 10:04:01 -0800 From: Giovanni Cabiddu To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Giovanni Cabiddu Subject: [PATCH 2/3] crypto: qat - fix initialization of pfvf cap_msg structures Date: Fri, 4 Mar 2022 18:03:55 +0000 Message-Id: <20220304180356.22469-3-giovanni.cabiddu@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220304180356.22469-1-giovanni.cabiddu@intel.com> References: <20220304180356.22469-1-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Organization: Intel Research and Development Ireland Ltd - Co. Reg. #308263 - Collinstown Industrial Park, Leixlip, County Kildare - Ireland Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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: 851ed498dba1 ("crypto: qat - exchange device capabilities over PFVF") Signed-off-by: Giovanni Cabiddu --- drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c b/drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c index 14b222691c9c..c5b326f63e95 100644 --- a/drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c +++ b/drivers/crypto/qat/qat_common/adf_pfvf_vf_msg.c @@ -96,7 +96,7 @@ int adf_vf2pf_request_version(struct adf_accel_dev *accel_dev) int adf_vf2pf_get_capabilities(struct adf_accel_dev *accel_dev) { struct adf_hw_device_data *hw_data = accel_dev->hw_device; - struct capabilities_v3 cap_msg = { { 0 }, }; + struct capabilities_v3 cap_msg = { 0 }; unsigned int len = sizeof(cap_msg); if (accel_dev->vf.pf_compat_ver < ADF_PFVF_COMPAT_CAPABILITIES) -- 2.35.1