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: 9337787 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 533806022E for ; Sun, 18 Sep 2016 12:55:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 412AD28DB0 for ; Sun, 18 Sep 2016 12:55:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31C8628DD4; Sun, 18 Sep 2016 12:55:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E54E928DB0 for ; Sun, 18 Sep 2016 12:55:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1blbay-00085o-T9; Sun, 18 Sep 2016 12:53:20 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1blbav-00084D-Kx for linux-arm-kernel@lists.infradead.org; Sun, 18 Sep 2016 12:53:18 +0000 Received: by mail-pa0-x233.google.com with SMTP id hm5so7593308pac.0 for ; Sun, 18 Sep 2016 05:52:56 -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=c31/jOHwo5yd7VssyuCUOL0KQvK2C4JBX/A18T72t99a9j6Xf9qOWQvLP5guoB6BU0 0Ze3Z/XFiDs2VMeoGba6fPC4rAAwhOJ/F9WBYNIMSxDWMYfuI0DHMUGjWPFLxD5EOd6S g56WSTn98BVLuB8xjyCmxpQEwT3t0iwv+1MKfPm/3Q0RYQjUDr5hKBDnw2JuCZdUASTG Vm95Gzji02bfTWZNF5WT57JgY2/GLFai6hozs/chx0TvEehCGKC2K3TpXQYl8LIUiBoZ qoUJvs4vu0nzXW3HZzikjhNHUAycWa3aChQ1CqwH9xBvR0KNTjf/cfzXvJ9nvssyxKDs RB1Q== X-Gm-Message-State: AE9vXwM4481ijpe8EZiWn6GLmrdTqYix3OL2EfPiSEf2pbM+uMM9FakfF3G263lOu9ZDkqZg 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160918_055317_756276_5C764AD3 X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arnd@arndb.de, xie.baoyou@zte.com.cn, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, baoyou.xie@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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;