From patchwork Tue Sep 12 10:12:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9948925 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 579E660360 for ; Tue, 12 Sep 2017 10:13:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47DE328ECF for ; Tue, 12 Sep 2017 10:13:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36BE628ED1; Tue, 12 Sep 2017 10:13:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A612D28EE6 for ; Tue, 12 Sep 2017 10:13:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751395AbdILKNA (ORCPT ); Tue, 12 Sep 2017 06:13:00 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:64496 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751366AbdILKM7 (ORCPT ); Tue, 12 Sep 2017 06:12:59 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0LjwWD-1dKJF10kaP-00bpMC; Tue, 12 Sep 2017 12:12:38 +0200 From: Arnd Bergmann To: Antoine Tenart , Herbert Xu , "David S. Miller" Cc: Arnd Bergmann , Ofer Heifetz , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: inside-secure - fix gcc-4.9 warnings Date: Tue, 12 Sep 2017 12:12:16 +0200 Message-Id: <20170912101232.3688217-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-Provags-ID: V03:K0:W6wgKbrDFB2CGX/8585KUPYoQdbbE1oIsMVCxDXyApue6W+Osgj UBBj6+NdLNbaeAcnztTwGHr6iqQcQY+UMOiOQPYdab6kB/RoQ4ZTUd1Kp9een+NRunqm6bh UltINH6R8LDIXQHED3dcWdAEYktfDKZaL9Z95DYO+JUP90fQ2yZYtlvVLKtzRLtgm2mI3nc 4xPVrnN1xLZB1386SH7Qw== X-UI-Out-Filterresults: notjunk:1; V01:K0:2GE6rVeiuQ8=:6Ox+maIB1PuKR/xaIfAzi3 VlA5/C66rTO33J7FUmkyxfoqHj1ewWL0UgxFqvDXTKkSo1uA4/hOAxC2WTv3aumQVt6tQs3nJ 4nR6SpCiYSpvO5+ve6Z3wK02+bj5DSRdTeLUSSwKKAZ6Z7DWtGtEI5jKKWBFMbzzhjamscU5U siPHkmPvZXU9M4ZMGy6DiK8r1wF3EPbxV22LLcOPhdK64gEZlwyY1DmaiRFIXqlojYzG2orfJ hCzS6o8V4pF+Y/KPaTu9AVPrlAUeAF4RYROl2EZeXwVQhTZ3WuzY8L5zQ7QDi6LVOXzy9UKJJ SIpzIsZvrrVAEshtayme3+FTfbAVmdiMm/XhCj+LzPx0Q3CSK2d3t/mS8B3pCoYTJw4HByWD2 QauSOoCXAChENnCCJxDHw3sJyN1J1F+AHiJXcDygLSHBlsNxm3GVDmC/72sZbTcTu6IdfS9Mv H22jsejSoQu1QnvX1Xsj1MxXjsygE+2fNaU5q83Zscv93bkYjAL3RFMRxwCosNOm7KVsq7LV9 SLJYxY67OfqwblTCTxaM5WZ6InfXTvgMJkRaUFC8ueDCGJcfeJcknDIh9DoW4ZYL2t76Kp9Ip b1wCYqr1nFF0ToaLbeL8w8zoNebBj8qt4ldmgwDfiFc5+J7QTuwX6vNQVidpgC17SyTwaPsth /WJA7Mg6fTJgk4m/bKSOFTQIn1i8Z+OtZAmU0D4mbovig8rKe+TMS/jTIxGy/ems2Owo5/Yb2 nrKWS9NZptNZ/mH++bUVbgm/Q/bwgyhHzQbMyiADGqWJsIPXDFgsOenhMXo= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All older compiler versions up to gcc-4.9 produce these harmless warnings: drivers/crypto/inside-secure/safexcel_cipher.c:389:9: warning: missing braces around initializer [-Wmissing-braces] drivers/crypto/inside-secure/safexcel_cipher.c:389:9: warning: (near initialization for ‘result.completion’) [-Wmissing-braces] drivers/crypto/inside-secure/safexcel_hash.c:422:9: warning: missing braces around initializer [-Wmissing-braces] drivers/crypto/inside-secure/safexcel_hash.c:422:9: warning: (near initialization for ‘result.completion’) [-Wmissing-braces] This changes the syntax to something that works on all versions without warnings. Fixes: 1b44c5a60c13 ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver") Signed-off-by: Arnd Bergmann Acked-by: Antoine Tenart --- drivers/crypto/inside-secure/safexcel_cipher.c | 2 +- drivers/crypto/inside-secure/safexcel_hash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/inside-secure/safexcel_cipher.c b/drivers/crypto/inside-secure/safexcel_cipher.c index d2207ac5ba19..5438552bc6d7 100644 --- a/drivers/crypto/inside-secure/safexcel_cipher.c +++ b/drivers/crypto/inside-secure/safexcel_cipher.c @@ -386,7 +386,7 @@ static int safexcel_cipher_exit_inv(struct crypto_tfm *tfm) struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm); struct safexcel_crypto_priv *priv = ctx->priv; struct skcipher_request req; - struct safexcel_inv_result result = { 0 }; + struct safexcel_inv_result result = {}; int ring = ctx->base.ring; memset(&req, 0, sizeof(struct skcipher_request)); diff --git a/drivers/crypto/inside-secure/safexcel_hash.c b/drivers/crypto/inside-secure/safexcel_hash.c index 3f819399cd95..3980f946874f 100644 --- a/drivers/crypto/inside-secure/safexcel_hash.c +++ b/drivers/crypto/inside-secure/safexcel_hash.c @@ -419,7 +419,7 @@ static int safexcel_ahash_exit_inv(struct crypto_tfm *tfm) struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm); struct safexcel_crypto_priv *priv = ctx->priv; struct ahash_request req; - struct safexcel_inv_result result = { 0 }; + struct safexcel_inv_result result = {}; int ring = ctx->base.ring; memset(&req, 0, sizeof(struct ahash_request));