From patchwork Sun May 28 14:40:33 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: 100619 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1063417qge; Sun, 28 May 2017 07:42:01 -0700 (PDT) X-Received: by 10.99.175.18 with SMTP id w18mr13771626pge.183.1495982520934; Sun, 28 May 2017 07:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495982520; cv=none; d=google.com; s=arc-20160816; b=U4b+IlGpqcOng7omvuAGjuu6GWTckVa4puKg/aNh8njrqG+h+KZAYsfLOgPn9u/bKH M2RWQKfLajhGFfDHvNpVwtzPtinlbk1J6q0OhOaNKiF6Re+mwqwq6A6LSKtiOYQU7wF8 XD63QR9NFC0n4oxA0208GaKJl6NrA5Rrwx3klm2tbY8D34TWOioC7k1Nl+iIZffzlpt1 3TllypI4NbKipbQH+riyf2mol0Np4o+9Qpj0xoa+TZ0Z2r282Fa5ldWgftodIkyUoNZY smaRm6cEKVDcm2GfHzlu6Bdu5cecZdSnH3HDCVWxsmPs/s/oLGr4hw6+X1SYhgsMuAMq RlLg== 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=gZlM+632sNWtCMKl5hJi6XaE1rRA3k3I95osjJJZjLQ3mwsLsY+dDMoB+OjaNauUBs 82Qoebu0K00jguoN+uNgr934ia/BCeBca+ohXoOji6koChQoIdRNgN2gdbdZBECK8ui3 bqQ/Y0GqM9RfPwtdeMMt3cwSDBvTXW6SxDxzWzQQwEraAVA6qLZyhuludCMpXQZND+2J enZWRSuBhFL2/Ht2MvMeZUfFR87bLcYcCohlpNkHfIoxeUyiMXgzxnOwxI8lmSQiWAs5 vxQV0SEV/6rjsEGQoz+m/CCS27twuzbJYyXlu4x5IjBAjpT8QQr3rH3l5o0AC5gptPFj Yrsw== 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 a13si7135782pfh.193.2017.05.28.07.42.00; Sun, 28 May 2017 07:42:00 -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 S1751128AbdE1Ol3 (ORCPT + 1 other); Sun, 28 May 2017 10:41:29 -0400 Received: from foss.arm.com ([217.140.101.70]:42156 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751022AbdE1Ol1 (ORCPT ); Sun, 28 May 2017 10:41:27 -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 27F3F15BE; Sun, 28 May 2017 07:41:27 -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 5BDAD3F52A; Sun, 28 May 2017 07:41:25 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH 08/12] staging: ccree: remove unused struct Date: Sun, 28 May 2017 17:40:33 +0300 Message-Id: <1495982440-10047-9-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1495982440-10047-1-git-send-email-gilad@benyossef.com> References: <1495982440-10047-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__*/