From patchwork Sun May 14 06:36:08 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: 99755 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1024151qge; Sat, 13 May 2017 23:38:09 -0700 (PDT) X-Received: by 10.99.1.22 with SMTP id 22mr165889pgb.228.1494743889787; Sat, 13 May 2017 23:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494743889; cv=none; d=google.com; s=arc-20160816; b=gd+fKKarC54xnpt15nV2S76IeioDpU6nsf65MrDCTfx1WN8WFy24YY7dBuWtBgrJcu XSRu2sZDsPW3vPd92ah8GPn7vKALyZLj6x+bNyZU+tX6AJb4scvh70035eOCgl2nkhAW RpicW3uby17RCeZEA6mDyjGdVOB59TVbSyyDyHmXPdNAKEa1t6Cq8FRYbyBtLSTzvDPx olLYXUUbTYdSiJGATkyCmuxFNtTj99Ymw+LrpfjYLvB56VbmQYu02iw40Fg5xC8XWXIE zo25gmfox/sxCurm9LmPngzdYE3mZwqFS5lBfYZ8trJZ3U0fld0KtSxYBYN8uv61W9k3 kdKQ== 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=7/riVVjgWPrKqJ946oSyIGOyRYJwmFa1YzcRi+EMo2I=; b=e0WvHMCsIdLSTxxzI3ZBF+DMyODGkiZaETwyyIzpVaMfEiJikPQZdOMvPe4y6ZGa3M Lo7lb25WS3doDOx/CcJT8QB+KdRWcDKO/QhCxpL9Tl56uPqBwBRnFpr3D5PczbLKdsHf DSD7lE8onThwKByGFsE96xdsYnTnoh+rfEaLRV1xdqoj7tgHWYsrCUv18GK+M9sc63k5 4YCOtum8p6N4io1WMvBck9lthgq5Taq87O732SMexeh91cqKwjHyBB1xyWkiW3bRJqzY wNj6g2bBC5R0I63oU4uYcsBYXctEE9oZk6xoVOm7MgxGdS6kmM2wMeVpg6GO27J2owGE 7lYg== 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 c17si4751996pgf.401.2017.05.13.23.38.09; Sat, 13 May 2017 23:38:09 -0700 (PDT) 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 S1752823AbdENGgT (ORCPT + 25 others); Sun, 14 May 2017 02:36:19 -0400 Received: from foss.arm.com ([217.140.101.70]:42024 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751326AbdENGgS (ORCPT ); Sun, 14 May 2017 02:36:18 -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 6777F80D; Sat, 13 May 2017 23:36:17 -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 981353F23B; Sat, 13 May 2017 23:36:15 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Arnd Bergmann , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] staging: ccree: remove unused function argument Date: Sun, 14 May 2017 09:36:08 +0300 Message-Id: <1494743768-876-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <20170511113900.2663608-1-arnd@arndb.de> References: <20170511113900.2663608-1-arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann "gcc -Wunused" warns about one argument being assigned but not used: drivers/staging/ccree/ssi_cipher.c: In function 'ssi_blkcipher_complete': drivers/staging/ccree/ssi_cipher.c:747:41: error: parameter 'info' set but not used [-Werror=unused-but-set-parameter] We can simply drop that argument here and in its callers. Fixes: 302ef8ebb4b2 ("staging: ccree: add skcipher support") Signed-off-by: Arnd Bergmann [ gby: rebased patch on latest revision and chopped >80 chars long lines ] Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/ssi_cipher.c b/drivers/staging/ccree/ssi_cipher.c index ea0e863..d245a2b 100644 --- a/drivers/staging/ccree/ssi_cipher.c +++ b/drivers/staging/ccree/ssi_cipher.c @@ -744,7 +744,6 @@ static int ssi_blkcipher_complete(struct device *dev, struct ssi_ablkcipher_ctx *ctx_p, struct blkcipher_req_ctx *req_ctx, struct scatterlist *dst, struct scatterlist *src, - void *info, //req info unsigned int ivsize, void *areq, void __iomem *cc_base) @@ -755,7 +754,6 @@ static int ssi_blkcipher_complete(struct device *dev, START_CYCLE_COUNT(); ssi_buffer_mgr_unmap_blkcipher_request(dev, req_ctx, ivsize, src, dst); - info = req_ctx->backup_info; END_CYCLE_COUNT(STAT_OP_TYPE_GENERIC, STAT_PHASE_4); @@ -895,7 +893,9 @@ static int ssi_blkcipher_process( END_CYCLE_COUNT(ssi_req.op_type, STAT_PHASE_3); } else { END_CYCLE_COUNT(ssi_req.op_type, STAT_PHASE_3); - rc = ssi_blkcipher_complete(dev, ctx_p, req_ctx, dst, src, info, ivsize, NULL, ctx_p->drvdata->cc_base); + rc = ssi_blkcipher_complete(dev, ctx_p, req_ctx, dst, + src, ivsize, NULL, + ctx_p->drvdata->cc_base); } } @@ -916,7 +916,8 @@ static void ssi_ablkcipher_complete(struct device *dev, void *ssi_req, void __io CHECK_AND_RETURN_VOID_UPON_FIPS_ERROR(); - ssi_blkcipher_complete(dev, ctx_p, req_ctx, areq->dst, areq->src, areq->info, ivsize, areq, cc_base); + ssi_blkcipher_complete(dev, ctx_p, req_ctx, areq->dst, areq->src, + ivsize, areq, cc_base); }