From patchwork Thu Jun 1 11:03:05 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: 100896 Delivered-To: patch@linaro.org Received: by 10.182.202.35 with SMTP id kf3csp701246obc; Thu, 1 Jun 2017 04:07:47 -0700 (PDT) X-Received: by 10.98.211.202 with SMTP id z71mr578326pfk.46.1496315267036; Thu, 01 Jun 2017 04:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496315267; cv=none; d=google.com; s=arc-20160816; b=yez3xpneXbKrbSx0uiPmmgQmfiA1kPtwyiuXLEkiEQPZiDlaijWkVDgoGMkiSJwts4 4qaAem29mAG8YnSfuion0nFSed1M8UiHp5Fji7wruhRu0f1wJVAat4s7RQL3OT7ACk8W 6hNyl8FX6TFHJBMARzGMVhC3RLX0r+FmkY2hkQM1sn1zpxhKC8XYcOf7ZO+csb6w1tCn wdimgZ6G/QUyVIrz+HFIBQUQE3EfRv796k5Ypl2iHckcZ/EPZteZ2bdAK8XzDKys9QGi LcjrtqDSLX8FdcgxBNFogsDpy5iEat6xK4UnnWVguNQGJBlO/JsuNlAlrKSOsBinBj48 IyDA== 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=jr35bArraOZB5qk0heRaxa6iJ01WN8YI/CbS1OLlluc=; b=XE1zwtB+Dqqp0TAk1YFEIu/ism5n7jVP3J/4qh/1GwPKn3f/qn9wh/1SoljM2nyf8O wqZWIQoxP/X/Gr18ufovyua8ZwLBUwHX15KODfm3lVfRXNWyONyHwyN9IfUdh8+h+/4A As7TbhmU0smdaESNOZUbY63MAeTuX3uh6SzzGllW7nEPHIM3sf8U+d4NmlOFZZ1zsTsS nzAMb1ODzUizqeYpniWgo001gmmt5rSML2fg5yydssw0e4GSsf4xjWT3QQ2s7HQ/dzN2 7kVzeuRIp9JAqObg3aRiO57Hg8W0XbVN4B6Cil7/tLKuX79VU9o+D8iLN01Ple4WgdE6 e1uw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 v11si2452555plk.103.2017.06.01.04.07.46; Thu, 01 Jun 2017 04:07:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751675AbdFALGw (ORCPT + 1 other); Thu, 1 Jun 2017 07:06:52 -0400 Received: from foss.arm.com ([217.140.101.70]:54534 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751726AbdFALFO (ORCPT ); Thu, 1 Jun 2017 07:05:14 -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 705881596; Thu, 1 Jun 2017 04:05:04 -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 9A6E73F578; Thu, 1 Jun 2017 04:05:02 -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 15/20] staging: ccree: remove unused struct Date: Thu, 1 Jun 2017 14:03:05 +0300 Message-Id: <1496314993-30229-16-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-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org struct SepHashPrivateContext is not used anywhere in the code. Remove it. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/hash_defs.h | 17 ----------------- 1 file changed, 17 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/hash_defs.h b/drivers/staging/ccree/hash_defs.h index 6138970..9e01219 100644 --- a/drivers/staging/ccree/hash_defs.h +++ b/drivers/staging/ccree/hash_defs.h @@ -57,22 +57,5 @@ enum HashCipherDoPadding { HASH_CIPHER_DO_PADDING_RESERVE32 = S32_MAX, }; -typedef struct SepHashPrivateContext { - /* The current length is placed at the end of the context buffer because the hash - context is used for all HMAC operations as well. HMAC context includes a 64 bytes - K0 field. The size of struct drv_ctx_hash reserved field is 88/184 bytes depend if t - he SHA512 is supported ( in this case teh context size is 256 bytes). - The size of struct drv_ctx_hash reseved field is 20 or 52 depend if the SHA512 is supported. - This means that this structure size (without the reserved field can be up to 20 bytes , - in case sha512 is not suppported it is 20 bytes (SEP_HASH_LENGTH_WORDS define to 2 ) and in the other - case it is 28 (SEP_HASH_LENGTH_WORDS define to 4) */ - u32 reserved[(sizeof(struct drv_ctx_hash)/sizeof(u32)) - SEP_HASH_LENGTH_WORDS - 3]; - u32 CurrentDigestedLength[SEP_HASH_LENGTH_WORDS]; - u32 KeyType; - u32 dataCompleted; - u32 hmacFinalization; - /* no space left */ -} SepHashPrivateContext_s; - #endif /*_HASH_DEFS_H__*/