From patchwork Thu Jun 1 11:02:56 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: 100881 Delivered-To: patch@linaro.org Received: by 10.182.202.35 with SMTP id kf3csp699646obc; Thu, 1 Jun 2017 04:04:19 -0700 (PDT) X-Received: by 10.98.245.155 with SMTP id b27mr505813pfm.181.1496315059452; Thu, 01 Jun 2017 04:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496315059; cv=none; d=google.com; s=arc-20160816; b=Qwd5KoSndBo+MOWANPVm0xiNXMmMlij0gAJN9O9xjZuFG8xh4zFQHBCaThWnzwz1EG 1fgo5YUXCSQTD5v7vIPJih8iwwuycaF7oWbaA7qYe8ooWyX8L8qKYgUNytsgrwX5qwmp n4LUUOb8Ad66e5XJIiDGWo6PVyBGFiyboWxPAtGsWA0s6JHxQth8EdIO1hGxmADAqj9Q 3uoVhZ8mEqGPUo3xqopDB3O/xGt/SvlLg46KVFBQY/41HSVTkw1MnWc+B1HVq+aOiIaf oR/j+GtIgvHHQ5U8uwggd+bolXa6bhhMjnVMzz9uPvps/bcnVxKF+NPGgdGxfWdhKTMe yKjw== 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=2QlkGf8JdcNCqwV/TlL/E6bzA1eEwqH3gxStcxmFsqs=; b=yZKsg7oTHxy0vwVrQgITreOQuPPAlNLFy6cvShzGr3IJdh/lqEQ0xjR1AVAD24AI6r jYjMLwBPz4A7VpN8V/lRzCf9edeoE8JZ+2/ZAwLldmbkGaSuLCeiwbbCZqJ8rsl5vb0m +S1caAAFPGHAvCzaqrccJhoGBZVkrKE3s3zb/pY4xMcAzsXCNWCaVQAtRcGJpjdnNbEU MKMa09TlWxmWFwtExKU1RPdDwNW5CnMhO1kDtgXb65bZxZe0EjBq9ZPiZobgKtbm0Z4h F/7zJnr9q6AZ6fN8t2qjVZRB71WOxfImS8EaMB8rDkZislr26a/6x88QW0xzRVBO+kDb k/Rg== 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 28si19575184pfq.323.2017.06.01.04.03.58; Thu, 01 Jun 2017 04:04:19 -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 S1751826AbdFALD4 (ORCPT + 1 other); Thu, 1 Jun 2017 07:03:56 -0400 Received: from foss.arm.com ([217.140.101.70]:54412 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751564AbdFALDz (ORCPT ); Thu, 1 Jun 2017 07:03:55 -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 4650B1596; Thu, 1 Jun 2017 04:03:55 -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 706423F578; Thu, 1 Jun 2017 04:03:53 -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 06/20] staging: ccree: add parentheses to macro argument Date: Thu, 1 Jun 2017 14:02:56 +0300 Message-Id: <1496314993-30229-7-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 Add parentheses around macro argument to guard against precedence issues. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_crypto_ctx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h index 838e6e4..20f3f9f 100644 --- a/drivers/staging/ccree/cc_crypto_ctx.h +++ b/drivers/staging/ccree/cc_crypto_ctx.h @@ -280,7 +280,7 @@ struct drv_ctx_aead { * @type: Type of context structure * @member: Associated context field */ -#define GET_CTX_FIELD_ADDR(ctx, type, member) (ctx + offsetof(type, member)) +#define GET_CTX_FIELD_ADDR(ctx, type, member) ((ctx) + offsetof(type, member)) #endif /* _CC_CRYPTO_CTX_H_ */ From patchwork Thu Jun 1 11:03:00 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: 100884 Delivered-To: patch@linaro.org Received: by 10.182.202.35 with SMTP id kf3csp699899obc; Thu, 1 Jun 2017 04:04:53 -0700 (PDT) X-Received: by 10.98.155.28 with SMTP id r28mr548231pfd.198.1496315093839; Thu, 01 Jun 2017 04:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496315093; cv=none; d=google.com; s=arc-20160816; b=sChN0bt+1Bos/9KVNP93rrzVWlELwUDlzfXlht4pzxBKrhRiaU3m2myeRSuWFV5w7g 6/WZbqSJYAsw6vCh2wncwTeEuQtzQrYnsqcIgQ3Gr3s3iX04LjapODBFa5wvG7wNUW86 WhCslNrsMm6jIi9yUifl+8IiWJBaEyB12ae4QmocwDHXDKRSrdLRSZV4F6krZtzKIXmk XU+qxbfrlg1LNi8UyF19hkCn7WTyVZ2l3vJ3BMgFayuW06XqSS96cPRgjQrW9Ze0gYDh x0LBkbmN4tkMnwCzDY9RsidUP3NmqmMadZOx4TFGVVPTJfWDpwUX+GqwNo+Iz5k9xS/o ihIQ== 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=PV+OZxtexhaKFi4LC6dZ9HpNB+Yo6I0b9syEASFgGP4=; b=HkEBU1EQbpOGKSinphy2yFstRSGS7FFBPvPjmtSVcLiWvDZltIdiEhuY/Uuy54EFE0 /lvUJNc+J99WKhJIXXn9CX/fcHJZKXwy5rYzUq4FgFW2e6c45jjfOrSZNhnNDla5jW7Y JfNDegmQ6GHWv5C5sqmWzoe5q3j+4WUCynAltxbC/nY/pHyOnVgGQdFUptUf6AGfUiJV 5bgsiUduHtbDW4URU4xRLdQ0OC5DaL8wWO+AMoaE3W+cafE2KESVUCJHrq6D1Nl85lAK +F34F2z53udX/XkpoDfODbBFtVdatv9dvyjqbF5aiI4AMrU11j702RchC0zBiRKMrdtL 9HcA== 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 f7si28114073plj.42.2017.06.01.04.04.53; Thu, 01 Jun 2017 04:04:53 -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 S1751886AbdFALEc (ORCPT + 1 other); Thu, 1 Jun 2017 07:04:32 -0400 Received: from foss.arm.com ([217.140.101.70]:54476 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751883AbdFALEc (ORCPT ); Thu, 1 Jun 2017 07:04:32 -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 C2A7115A2; Thu, 1 Jun 2017 04:04:31 -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 EE4253F578; Thu, 1 Jun 2017 04:04:29 -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 10/20] staging: ccree: move M/LLI defines to header file Date: Thu, 1 Jun 2017 14:03:00 +0300 Message-Id: <1496314993-30229-11-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 A bunch of macros used to define M/LLI descriptors where being defined in the C file. Move them over to private include file where other relevant definitions are stored. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_lli_defs.h | 8 ++++++++ drivers/staging/ccree/ssi_buffer_mgr.c | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/cc_lli_defs.h b/drivers/staging/ccree/cc_lli_defs.h index 876dde0..78811aa 100644 --- a/drivers/staging/ccree/cc_lli_defs.h +++ b/drivers/staging/ccree/cc_lli_defs.h @@ -28,6 +28,14 @@ #define CC_MAX_MLLI_ENTRY_SIZE 0xFFFF +#define LLI_MAX_NUM_OF_DATA_ENTRIES 128 +#define LLI_MAX_NUM_OF_ASSOC_DATA_ENTRIES 4 +#define MLLI_TABLE_MIN_ALIGNMENT 4 /* 32 bit alignment */ +#define MAX_NUM_OF_BUFFERS_IN_MLLI 4 +#define MAX_NUM_OF_TOTAL_MLLI_ENTRIES \ + (2 * LLI_MAX_NUM_OF_DATA_ENTRIES + \ + LLI_MAX_NUM_OF_ASSOC_DATA_ENTRIES) + /* Size of entry */ #define LLI_ENTRY_WORD_SIZE 2 #define LLI_ENTRY_BYTE_SIZE (LLI_ENTRY_WORD_SIZE * sizeof(u32)) diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c b/drivers/staging/ccree/ssi_buffer_mgr.c index 28dc724..25b2876 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.c +++ b/drivers/staging/ccree/ssi_buffer_mgr.c @@ -33,13 +33,6 @@ #include "ssi_hash.h" #include "ssi_aead.h" -#define LLI_MAX_NUM_OF_DATA_ENTRIES 128 -#define LLI_MAX_NUM_OF_ASSOC_DATA_ENTRIES 4 -#define MLLI_TABLE_MIN_ALIGNMENT 4 /*Force the MLLI table to be align to uint32 */ -#define MAX_NUM_OF_BUFFERS_IN_MLLI 4 -#define MAX_NUM_OF_TOTAL_MLLI_ENTRIES (2*LLI_MAX_NUM_OF_DATA_ENTRIES + \ - LLI_MAX_NUM_OF_ASSOC_DATA_ENTRIES ) - #ifdef CC_DEBUG #define DUMP_SGL(sg) \ while (sg) { \ From patchwork Thu Jun 1 11:03:01 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: 100887 Delivered-To: patch@linaro.org Received: by 10.182.202.35 with SMTP id kf3csp699908obc; Thu, 1 Jun 2017 04:04:54 -0700 (PDT) X-Received: by 10.98.55.198 with SMTP id e189mr561165pfa.38.1496315094792; Thu, 01 Jun 2017 04:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496315094; cv=none; d=google.com; s=arc-20160816; b=uTVcF2azcRiJ0N38jSRdpKLT/pzR1uhMbcOOf9cGUxzkDAJoWJ6ygxxcNiZPLtjGOB JrapKU73i97fQQfxl7y3XerJ17UuXLtLzx2LbR6jyG4UmxqJ7qIrlyioO42nwXTaNczJ MawMzdLxkN7R3nI7XTuWaKwKylTMaKdEySNcegxwQn7lW0biMTnGvFoeWHFKinIQbh2c qJJD5xk9czuhC83pfzFmbnYBlAXILXjnV+m//TU27rVmJ/hd9yI1ynUYH9n3y7LKsR0/ 9Fk9TTyQWVZnfa/LjhyiO/lzh2YUbaEXU2KUwArOrq2Etn/FeYtqEBW0TBYuH7HGkCoW 8D+A== 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=iWG3tP1I7RwKVzqOEXj83dlHpdc+ldk5nj4DE7R296U=; b=D2sLS/I1cpvbnIN3Mt9bDSMsBdMQDG5LjLefsXmV5KzynKllW209P7nUz0DqpSGTT4 wQF0a+UYbGPAsNR1aVmYbeAT3IB3Z8yd9OWIsZmKLNRXMbC5j/D7pDsjPQGS1p75P1gG 3bRfdPlE4DIAyfENmHqqAiImwJ3tpQMddMBVa0oBusAX1AkcIJ80EVYgbvQM7vEyezWV +rHisVI4MfcJtxYIvjD/ccwIRS0bd74d43sJ4og+ZCKdW356GM9V3tRVBOr6KtSOgXo+ Abb7vm/KstHnqMB0vUNKGWjZKLOlLTH/YN9EL0s5q7Ha4wgGYSELQIhyjRpLa2bSvk+w HWlA== 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 f7si28114073plj.42.2017.06.01.04.04.54; Thu, 01 Jun 2017 04:04:54 -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 S1751866AbdFALEt (ORCPT + 1 other); Thu, 1 Jun 2017 07:04:49 -0400 Received: from foss.arm.com ([217.140.101.70]:54484 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954AbdFALEs (ORCPT ); Thu, 1 Jun 2017 07:04:48 -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 E3CFE1596; Thu, 1 Jun 2017 04:04:37 -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 1BADE3F578; Thu, 1 Jun 2017 04:04:35 -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 11/20] staging: ccree: remove unused debug macros Date: Thu, 1 Jun 2017 14:03:01 +0300 Message-Id: <1496314993-30229-12-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 The DUMP_SGL() and DUMP_MLLI_TABLE() debug macros were defined but not used anywhere and the difference of their definitions for debug vs. none debug indicated this has not being used in a while. Remove the dead code. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 19 ------------------- 1 file changed, 19 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c b/drivers/staging/ccree/ssi_buffer_mgr.c index 25b2876..4864597 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.c +++ b/drivers/staging/ccree/ssi_buffer_mgr.c @@ -34,30 +34,11 @@ #include "ssi_aead.h" #ifdef CC_DEBUG -#define DUMP_SGL(sg) \ - while (sg) { \ - SSI_LOG_DEBUG("page=%p offset=%u length=%u (dma_len=%u) " \ - "dma_addr=%08x\n", sg_page(sg), (sg)->offset, \ - (sg)->length, sg_dma_len(sg), (sg)->dma_address); \ - (sg) = sg_next(sg); \ - } -#define DUMP_MLLI_TABLE(mlli_p, nents) \ - do { \ - SSI_LOG_DEBUG("mlli=%pK nents=%u\n", (mlli_p), (nents)); \ - while((nents)--) { \ - SSI_LOG_DEBUG("addr=0x%08X size=0x%08X\n", \ - (mlli_p)[LLI_WORD0_OFFSET], \ - (mlli_p)[LLI_WORD1_OFFSET]); \ - (mlli_p) += LLI_ENTRY_WORD_SIZE; \ - } \ - } while (0) #define GET_DMA_BUFFER_TYPE(buff_type) ( \ ((buff_type) == SSI_DMA_BUF_NULL) ? "BUF_NULL" : \ ((buff_type) == SSI_DMA_BUF_DLLI) ? "BUF_DLLI" : \ ((buff_type) == SSI_DMA_BUF_MLLI) ? "BUF_MLLI" : "BUF_INVALID") #else -#define DX_BUFFER_MGR_DUMP_SGL(sg) -#define DX_BUFFER_MGR_DUMP_MLLI_TABLE(mlli_p, nents) #define GET_DMA_BUFFER_TYPE(buff_type) #endif 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__*/