From patchwork Wed Jan 14 01:14:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiyj_lk@163.com X-Patchwork-Id: 5625211 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 1DA6EC058D for ; Wed, 14 Jan 2015 01:15:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C7F720395 for ; Wed, 14 Jan 2015 01:15:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D94FE2038C for ; Wed, 14 Jan 2015 01:15:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751669AbbANBPQ (ORCPT ); Tue, 13 Jan 2015 20:15:16 -0500 Received: from m12-12.163.com ([220.181.12.12]:58749 "EHLO m12-12.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbbANBPQ (ORCPT ); Tue, 13 Jan 2015 20:15:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=yqCjMbfLNK56Jtufl/ AESnkbjY0EO2tJhnHBdLVQfFU=; b=IEiL0bcwGCD0fLTzj314aNRMz01fE1px/0 CbsBXZlVxxjKwH383DTKAYipBdMQjjvD90GyRZAJeR75cgV7yBOc9PlqWnyBlDSp jFWimGjpaIGDBcz3fyO248waUpCl/blIBpNQZutXO7GJ2dAwwuqb/TUefoQ4QH8j D8UWd3Yfc= Received: from localhost.localdomain.localdomain (unknown [117.88.247.19]) by smtp8 (Coremail) with SMTP id DMCowECJXEMDw7VU+Me2BA--.2035S2; Wed, 14 Jan 2015 09:14:43 +0800 (CST) X-Coremail-DSSMTP: 117.88.247.19 From: weiyj_lk@163.com To: Herbert Xu , Stephan Mueller Cc: Wei Yongjun , linux-crypto@vger.kernel.org Subject: [PATCH -next] crypto: algif_rng - fix sparse non static symbol warning Date: Wed, 14 Jan 2015 09:14:41 +0800 Message-Id: <1421198081-16766-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 1.9.3 X-CM-TRANSID: DMCowECJXEMDw7VU+Me2BA--.2035S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7WryUGw48JrW7Gr4kXw1xuFg_yoW3JFX_Wr WfGr1UXryxZFn293WDuFW5tr1fWa43urWavrW2kwnFy3y3JFsxGFsrXr97Zr1j9r1DJFZI 9ayjq345Cr17CjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUnmXdUUUUUU== X-Originating-IP: [117.88.247.19] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/1tbiMBSB1lEAQ-2x1AAAs5 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 From: Wei Yongjun Fixes the following sparse warnings: crypto/algif_rng.c:185:13: warning: symbol 'rng_exit' was not declared. Should it be static? Signed-off-by: Wei Yongjun Acked-by: Stephan Mueller Acked-by: Neil Horman --- crypto/algif_rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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/crypto/algif_rng.c b/crypto/algif_rng.c index 91c06f5..67f612c 100644 --- a/crypto/algif_rng.c +++ b/crypto/algif_rng.c @@ -182,7 +182,7 @@ static int __init rng_init(void) return af_alg_register_type(&algif_type_rng); } -void __exit rng_exit(void) +static void __exit rng_exit(void) { int err = af_alg_unregister_type(&algif_type_rng); BUG_ON(err);