From patchwork Sun Jun 4 08:02:31 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: 101344 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp438176qgd; Sun, 4 Jun 2017 01:06:27 -0700 (PDT) X-Received: by 10.98.40.198 with SMTP id o189mr14907294pfo.238.1496563587254; Sun, 04 Jun 2017 01:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496563587; cv=none; d=google.com; s=arc-20160816; b=ot0JNgShOLFUJpCrNERymrS+qGKBlchFPI9C7+RCkcRs7dRB+BxhQJtuVpn6+qurKf w47QVB2mMVmWPyMcdOlIYuodRiDz7ck5wdctHf+OeqtjLT1zg8KE7FcWHzawXHI94pPM K0noRWOnud/h/x5vfnlZVukq/wIuvjN41pRcwem1uSmAzRIeEnWh8GjuNdGXbQvpIxm6 0GnJ6ZawCI95gKlEK2qKi4bO5P6/dzfA7wiEpuGplcaaTd6+eG9O3g1BhHFiv2ox5Kr7 P4N/zaeeYBoznc7Gig8xVxLhWb0Iuij4/R565MQ81I7MSlDr5fGaVzPUQCMxtAKIbJgn XqEg== 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=dHYhruYsvbJtYtlJ127SrKaz4djZ1RgxzruHY14Nvx8=; b=CiJtXfVW19X2HrhZI0wCgm0Qt6KdvFll6JkIrPUuojVSQEF8ulESUX1iJppJweY51j NiIJSIgMZhnrBCNk2OkgEdOhMRDi2lFph+Gs0mH8robFoax28fTMLt/oaf6W1VmIv23n pPB+0XKS6Al/nNcCjMyTaggANOsx6MLOMzwWr0DLkKhUTsNvpJW3fRv5O9iXPQbLvsAr myu6O7NzBSM5n24nLiBrGYn+XrCqGjXp4/LCjipMbtLuM14n/hW7iquItBlHgQFFvXJW Sx31CMOHNOy5PuKhieVS5pH6UyCmJWTfO2Nw9m2N4z7y4fEuksKH+1X3ErR1TgmB04uY SEZQ== 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 m5si4321200pli.193.2017.06.04.01.06.27; Sun, 04 Jun 2017 01:06:27 -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 S1751284AbdFDIGZ (ORCPT + 1 other); Sun, 4 Jun 2017 04:06:25 -0400 Received: from foss.arm.com ([217.140.101.70]:52768 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751193AbdFDIDw (ORCPT ); Sun, 4 Jun 2017 04:03:52 -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 8A3CB344; Sun, 4 Jun 2017 01:03:47 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 810CA3F589; Sun, 4 Jun 2017 01:03:45 -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 v3 10/18] staging: ccree: remove unused struct Date: Sun, 4 Jun 2017 11:02:31 +0300 Message-Id: <1496563362-7954-11-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496563362-7954-1-git-send-email-gilad@benyossef.com> References: <1496563362-7954-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 | 18 ------------------ 1 file changed, 18 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/hash_defs.h b/drivers/staging/ccree/hash_defs.h index 3f2b2d1..9e01219 100644 --- a/drivers/staging/ccree/hash_defs.h +++ b/drivers/staging/ccree/hash_defs.h @@ -57,23 +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__*/