From patchwork Sun Sep 18 12:52:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76466 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp514312qgf; Sun, 18 Sep 2016 05:53:00 -0700 (PDT) X-Received: by 10.98.220.93 with SMTP id t90mr38376192pfg.30.1474203180059; Sun, 18 Sep 2016 05:53:00 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tb4si22772586pac.273.2016.09.18.05.52.59; Sun, 18 Sep 2016 05:53: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; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932319AbcIRMw6 (ORCPT + 1 other); Sun, 18 Sep 2016 08:52:58 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:35113 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759245AbcIRMw5 (ORCPT ); Sun, 18 Sep 2016 08:52:57 -0400 Received: by mail-pa0-f48.google.com with SMTP id oz2so35274966pac.2 for ; Sun, 18 Sep 2016 05:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=BzH7um72sBzuWnpuk2gVqvtIBqWjDVGQd/ByjyeQ9OU=; b=E6SotCcBSGxoZsH5ODafma/yogZItbdWhhk+ibHYKUcInRQt1lM1+eHrVrhSKIfAKw Plyu7BTy/A/8drE4Gb7CkBmEXJPMlItCVq570WI8b073HpVS2oA0YKA52nuV/nBaqXAc TjLpjrjKfCD9HrGV/uA8myC2diGmHQeCNP7XQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BzH7um72sBzuWnpuk2gVqvtIBqWjDVGQd/ByjyeQ9OU=; b=RRKaBoRXmu9Ka8RAM9iTWOv07x+5PIYwI2bqn09mLk0xPTDbJghHIJ26k4XDhj++BH fi1HOjx8IvYDhLjgv18ljq3EpLmib3rRtFTHk7xqdOe5fN3QNrAOqr1P3XTemB7IT01s 6j9F4fZE1UQXvlh7zIFZ5ypr5hdyaR7+XNvv3cpKKJw5kHeA2dgKBDwAhNiou4WltQI1 3p4q6BdWih0LUWZUisc2eFe/7Ihbdxf8IyjYkZzNVAxNJ42GvBzl8USP/tSgs4OT2eQl SUk8Bnwbxh92+dGGYhOD2RbwFx8hyHI6Z1rOuy6+J8DLIi6aCzkwpvyWtULFHCYheva9 OOIg== X-Gm-Message-State: AE9vXwOf8PBpAb+Nz1yKEbX0YL2mgBky0i9OpU7HdP2zJ+CmosCjy0Mkv2KuAWRef24c9aTe X-Received: by 10.66.217.170 with SMTP id oz10mr38830334pac.61.1474203176585; Sun, 18 Sep 2016 05:52:56 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.27]) by smtp.gmail.com with ESMTPSA id gm1sm18623351pac.2.2016.09.18.05.52.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 05:52:56 -0700 (PDT) From: Baoyou Xie To: clabbe.montjoie@gmail.com, herbert@gondor.apana.org.au, davem@davemloft.net, maxime.ripard@free-electrons.com, wens@csie.org Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] crypto: sun4i-ss: mark sun4i_hash() static Date: Sun, 18 Sep 2016 20:52:44 +0800 Message-Id: <1474203164-14884-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/crypto/sunxi-ss/sun4i-ss-hash.c:168:5: warning: no previous prototype for 'sun4i_hash' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/crypto/sunxi-ss/sun4i-ss-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-hash.c b/drivers/crypto/sunxi-ss/sun4i-ss-hash.c index 1afeb8e..0de2f62 100644 --- a/drivers/crypto/sunxi-ss/sun4i-ss-hash.c +++ b/drivers/crypto/sunxi-ss/sun4i-ss-hash.c @@ -165,7 +165,7 @@ int sun4i_hash_import_sha1(struct ahash_request *areq, const void *in) * write remaining data in op->buf * final state op->len=56 */ -int sun4i_hash(struct ahash_request *areq) +static int sun4i_hash(struct ahash_request *areq) { u32 v, ivmode = 0; unsigned int i = 0;