From patchwork Thu Jun 1 11:02:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 100883 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp745437qge; Thu, 1 Jun 2017 04:03:57 -0700 (PDT) X-Received: by 10.98.101.6 with SMTP id z6mr492697pfb.221.1496315037089; Thu, 01 Jun 2017 04:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496315037; cv=none; d=google.com; s=arc-20160816; b=mgaxdpnmnweyodQiNI5n9mIf0GMSA26zY9sOfVTSfwA2tuLIlrjak3nQj5SHSa5Di+ eCyewzukgqewQVx9M/By3+hS9bakW6cgoeO7TENU3OeOFGLqsOiZG7N2Bd5KW9QWU9ba etH4gN3PtlRsVP0CZw9iMmz8AnMpNZTmsR+4cNfysWQcWDXoe25TJc8f7nCe9AmNYE/M e5zw2ehbH9Zixy+gOP7guBD8Q2LS3zH5swjlxbwy3ozO9ObV9tHTcVdzYK8praqs3lrd 6PZreTC5S3aKWTjrzoQOuhLZoTcl+VZ8Ot2sLO6IbqqeOY423tyG8pJILALMT7yJWbk9 mqWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=iHkN3yf8ah6N+mW+TBS1OMTNHmkYUgubN64ViGCuc6w=; b=KrTi7iToVCHpROYdGK490nTkR75Ej7Rf1mgBcH7Xl47rc/jUsVGXhJPkZ9fQ3gfuFe ygBRxseoitbyL4BNYVpee0nP6r6GyKBpY64F+vL/sQk2ygWg2fMU8/uhE8MeNTpdL8wf S8n8A77mV14gWAPbgCc67BghbVmL8UoEhtlaaSraLkEdyU5kJyhW1sNKY6jcP6v3biF6 4uEbVz98eSA8SFx5VG3vYqwMZ5njvAzGAqWsSvWGIyhXDna7axrgLdy6BYUK0G/eiyBU 354y+qkbn3XJuKdIzXQ4BiE+1g+q6MLnADp2xKraC56z/tLUJn8uZ5pfIsANkG3hhJza mZcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 28si19575184pfq.323.2017.06.01.04.03.56; Thu, 01 Jun 2017 04:03:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751824AbdFALDv (ORCPT + 25 others); Thu, 1 Jun 2017 07:03:51 -0400 Received: from foss.arm.com ([217.140.101.70]:54388 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751742AbdFALDt (ORCPT ); Thu, 1 Jun 2017 07:03:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B7A3A1596; Thu, 1 Jun 2017 04:03:43 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.155]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DFD033F578; Thu, 1 Jun 2017 04:03:41 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Joe Perches , Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH v2 04/20] staging: ccree: fix operator spacing Date: Thu, 1 Jun 2017 14:02:54 +0300 Message-Id: <1496314993-30229-5-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496314993-30229-1-git-send-email-gilad@benyossef.com> References: <1496314993-30229-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cc_crypto_ctx.h file had a few macro definitions with missing spaces around operators. Add missing spaces. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_crypto_ctx.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h index 15b4ef9..10f57e6 100644 --- a/drivers/staging/ccree/cc_crypto_ctx.h +++ b/drivers/staging/ccree/cc_crypto_ctx.h @@ -220,7 +220,7 @@ struct drv_ctx_hmac { enum drv_crypto_alg alg; /* DRV_CRYPTO_ALG_HMAC */ enum drv_hash_mode mode; u8 digest[CC_DIGEST_SIZE_MAX]; - u32 k0[CC_HMAC_BLOCK_SIZE_MAX/sizeof(u32)]; + u32 k0[CC_HMAC_BLOCK_SIZE_MAX / sizeof(u32)]; u32 k0_size; /* reserve to end of allocated context size */ u8 reserved[CC_CTX_SIZE - 3 * sizeof(u32) - @@ -244,8 +244,8 @@ struct drv_ctx_cipher { u8 xex_key[CC_AES_KEY_SIZE_MAX]; /* reserve to end of allocated context size */ u32 reserved[CC_DRV_CTX_SIZE_WORDS - 7 - - CC_AES_BLOCK_SIZE/sizeof(u32) - 2 * - (CC_AES_KEY_SIZE_MAX/sizeof(u32))]; + CC_AES_BLOCK_SIZE / sizeof(u32) - 2 * + (CC_AES_KEY_SIZE_MAX / sizeof(u32))]; }; /* authentication and encryption with associated data class */ @@ -265,8 +265,8 @@ struct drv_ctx_aead { u8 key[CC_AES_KEY_SIZE_MAX]; /* reserve to end of allocated context size */ u32 reserved[CC_DRV_CTX_SIZE_WORDS - 8 - - 3 * (CC_AES_BLOCK_SIZE/sizeof(u32)) - - CC_AES_KEY_SIZE_MAX/sizeof(u32)]; + 3 * (CC_AES_BLOCK_SIZE / sizeof(u32)) - + CC_AES_KEY_SIZE_MAX / sizeof(u32)]; }; /*******************************************************************/