From patchwork Mon Nov 13 14:45:47 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: 118804 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp1132445edl; Mon, 13 Nov 2017 06:48:19 -0800 (PST) X-Google-Smtp-Source: AGs4zMZM5hpTMum9bkOjP5TlQHU4juGAWSBuZxhShaXnqCpuU+XCSiDZpyEQy6wcbS1zSJUlt8ve X-Received: by 10.98.71.25 with SMTP id u25mr10138116pfa.75.1510584499591; Mon, 13 Nov 2017 06:48:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510584499; cv=none; d=google.com; s=arc-20160816; b=AyTcuxoRnVjtun3vi3gOXZGObRnJZapV/j+wgUi9kBLEhGu6KVqxDx03Dg+Jn5ptH4 dUeX+EfSLDQtGe9n43jwt27szHF09QscnutLOM3y15oTimqDCxQCOSgWE4fvJOPy59+c MV+fm0Di39v2AAq1FvaGETJB8CUnVQ4Z59Eru2fdsMXy9tpW3+EQuzWtFbKZn9zyEVa7 KPlfl0cMpXv90I0wwg2i0WXspfC39GDtJn//qK2DAWF4B4TRpZUXTbdwE2Fo7ksMG0pk SRnNZ4n5bfNRPotq4MoDILqfgvQ8M54HH+0c5FsSfKZzBDRmCfkasalXb+f/kdwx5IvS YmAw== 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=8fnvxjqVYgHpZh+doQ/oHCbzF14/z2IpNKdZwkeie5I=; b=m0obArLwcrwBfg5NjTyoDwIHVtk6uaW0537jUqSyzKUZGm1Spxl/hDQU5/k1SAE8As /IwwJcOVLtXNYqao9lwfXFsFzgXZk60HdWRsLUmPuUrwUZaQi034yiDWhm4TG5aIxCeW Zu+pI0Jc5nHdS2JTPlTMhr4xh6B2XuzLoXfoiQDGxY033qGoU9cxYiRZ1kdhtcJ3Yeji 0/8cH2rNrFkb8BlERj+nT11f4rUm9+l4H7lzM1R2ECEhnv2HujROu/U2zcT7nwEdvXsQ V3Q2/3jLUPg+5rb4AQA3Aew0OEEIRMW1T8sVtyHxpQHp0s9GaB/6FAcgYmCdHRNR/1bf zhGA== 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 w8si14120564plk.798.2017.11.13.06.48.19; Mon, 13 Nov 2017 06:48:19 -0800 (PST) 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 S1753523AbdKMOsR (ORCPT + 27 others); Mon, 13 Nov 2017 09:48:17 -0500 Received: from foss.arm.com ([217.140.101.70]:47448 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752929AbdKMOsP (ORCPT ); Mon, 13 Nov 2017 09:48:15 -0500 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 029EE1435; Mon, 13 Nov 2017 06:48:15 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.133]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 64D6D3F318; Mon, 13 Nov 2017 06:48:13 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 19/24] staging: ccree: rename long define for readability Date: Mon, 13 Nov 2017 14:45:47 +0000 Message-Id: <1510584358-29473-20-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510584358-29473-1-git-send-email-gilad@benyossef.com> References: <1510584358-29473-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 Rename the too long SSI_MAX_HASH_OPAD_TMP_KEYS_SIZE to SSI_MAX_OPAD_KEYS_SIZE for better code readability. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index 0f67737..afdc44e 100644 --- a/drivers/staging/ccree/ssi_hash.c +++ b/drivers/staging/ccree/ssi_hash.c @@ -32,7 +32,7 @@ #include "ssi_sram_mgr.h" #define SSI_MAX_AHASH_SEQ_LEN 12 -#define SSI_MAX_HASH_OPAD_TMP_KEYS_SIZE SSI_MAX_HASH_BLCK_SIZE +#define SSI_MAX_OPAD_KEYS_SIZE SSI_MAX_HASH_BLCK_SIZE struct ssi_hash_handle { ssi_sram_addr_t digest_len_sram_addr; /* const value in SRAM*/ @@ -94,7 +94,7 @@ struct ssi_hash_ctx { * the initial digest if HASH. */ u8 digest_buff[SSI_MAX_HASH_DIGEST_SIZE] ____cacheline_aligned; - u8 opad_tmp_keys_buff[SSI_MAX_HASH_OPAD_TMP_KEYS_SIZE] ____cacheline_aligned; + u8 opad_tmp_keys_buff[SSI_MAX_OPAD_KEYS_SIZE] ____cacheline_aligned; dma_addr_t opad_tmp_keys_dma_addr ____cacheline_aligned; dma_addr_t digest_buff_dma_addr;