From patchwork Sat Sep 24 04:28:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76907 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp183239qgf; Fri, 23 Sep 2016 21:29:07 -0700 (PDT) X-Received: by 10.98.134.201 with SMTP id x192mr18613309pfd.21.1474691347266; Fri, 23 Sep 2016 21:29:07 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 79si10538317pfz.273.2016.09.23.21.29.07; Fri, 23 Sep 2016 21:29:07 -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 S1752345AbcIXE3C (ORCPT + 1 other); Sat, 24 Sep 2016 00:29:02 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:34229 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750763AbcIXE3B (ORCPT ); Sat, 24 Sep 2016 00:29:01 -0400 Received: by mail-pa0-f52.google.com with SMTP id wk8so45840675pab.1 for ; Fri, 23 Sep 2016 21:29:01 -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=iXflPfqu+N3rcRpUuMnYFYRBfLCuMeh3MUQ6wxmdMngHlxP07VKko84A40oBEFIsRv I+Cebxx0Vu8lJ1BFOAB8LSes2Vpn2bA0mG16U/PusFUHYbYQEtCsM1owtF342iaZ/lYw Zu88CiA60r0t3gHmoYDwGOodwHGhpJnpp4ZY8= 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=Ahw++eBCjfg7TJseya8BT3mGBmxVKAPxmptmuDVDpjBJQU1uX2utktxCyeMuAhhCc4 bxhWTXVosXuNTasBzhFj7f721rCblPuZOSCGCgJrYbAKmhWWIJrLLBvjivCrIJuULLhT I3oBUbRfRmC2Wx0KbINonjipf/0ffrryOy2vs2jUMoUBKbk/fIvQkACkvf2647lCx4TM grS5D4DZkD/thWc/4yJCLa8zCSx+8NeV96gFqHP8Ils769sHJN61/nD9G3WdTUaC6g4A YRazyaPLW1Gz7ZPbMjEhhxodI7NhtMVvVoWev0DFq0cCPJQz6NgAYlV8TB7aXtFbWTT8 1+KQ== X-Gm-Message-State: AE9vXwNo6hoHGM+ZZZ0L3hxbroKOYJC0e75gYk6chdaPFyCGl0JNn9YpLYlb7cWvwEZImGXw X-Received: by 10.66.26.113 with SMTP id k17mr18392026pag.100.1474691340702; Fri, 23 Sep 2016 21:29:00 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id an11sm14752769pac.26.2016.09.23.21.28.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 21:29:00 -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: sunxi-ss: mark sun4i_hash() static Date: Sat, 24 Sep 2016 12:28:46 +0800 Message-Id: <1474691326-15541-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;