From patchwork Sun Sep 27 14:47:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7273301 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 07C15BEEA4 for ; Sun, 27 Sep 2015 14:53:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02525208AA for ; Sun, 27 Sep 2015 14:53:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 177C92088F for ; Sun, 27 Sep 2015 14:53:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755880AbbI0OxQ (ORCPT ); Sun, 27 Sep 2015 10:53:16 -0400 Received: from m50-135.163.com ([123.125.50.135]:42791 "EHLO m50-135.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755837AbbI0OxQ (ORCPT ); Sun, 27 Sep 2015 10:53:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=PYCa6yTKOa9Ss2EGkH rySFW7QWZeiU8JlpvBT+zQO6Q=; b=J8Dxxp1+HnCiwmfE4huiGJ3/2bfR5Gb1XZ GHcJrfntJ0B4fbl7nXDP/MgnPii/nInlLE3D7vuy0ajRcNCT366Sj5g9a6AYM/K9 24zy0pvGlDXMmfSBMnYxvTX33M3PljyFOlwUY6GzL2d4c7SDEOz5cLyHgiL0Rews fgBi657+g= Received: from localhost (unknown [116.77.145.163]) by smtp5 (Coremail) with SMTP id D9GowAC3RJprAQhWwnv5CQ--.37722S3; Sun, 27 Sep 2015 22:47:09 +0800 (CST) From: Geliang Tang To: Herbert Xu , "David S. Miller" Cc: Geliang Tang , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: blkcipher and ablkcipher should it be static Date: Sun, 27 Sep 2015 22:47:05 +0800 Message-Id: X-Mailer: git-send-email 2.5.0 X-CM-TRANSID: D9GowAC3RJprAQhWwnv5CQ--.37722S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7Kr45tryxXw4rZryUKw4fGrg_yoW8GF45pF 1Fk397Kr4UJF1vka48JF93tFy7KFW5Zay3tr4rC34fKrnFqrW8XrnrAw1UAry3JFZ8GFy5 Gr4v934DWw1DGFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UivttUUUUU= X-Originating-IP: [116.77.145.163] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiMA6CmVWBRb5V1AAAsL Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following sparse warnings: crypto/skcipher.c:94:5: warning: symbol 'crypto_init_skcipher_ops_blkcipher' was not declared. Should it be static? crypto/skcipher.c:185:5: warning: symbol 'crypto_init_skcipher_ops_ablkcipher' was not declared. Should it be static? Signed-off-by: Geliang Tang --- crypto/skcipher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/skcipher.c b/crypto/skcipher.c index dd5fc1b..7591928 100644 --- a/crypto/skcipher.c +++ b/crypto/skcipher.c @@ -91,7 +91,7 @@ static void crypto_exit_skcipher_ops_blkcipher(struct crypto_tfm *tfm) crypto_free_blkcipher(*ctx); } -int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm) +static int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm) { struct crypto_alg *calg = tfm->__crt_alg; struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); @@ -182,7 +182,7 @@ static void crypto_exit_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) crypto_free_ablkcipher(*ctx); } -int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) +static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) { struct crypto_alg *calg = tfm->__crt_alg; struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm);