From patchwork Wed Aug 8 04:30:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 10559497 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 98AA013B4 for ; Wed, 8 Aug 2018 04:23:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71C7127853 for ; Wed, 8 Aug 2018 04:23:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63C432A296; Wed, 8 Aug 2018 04:23:19 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 074A027853 for ; Wed, 8 Aug 2018 04:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbeHHGke (ORCPT ); Wed, 8 Aug 2018 02:40:34 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:10678 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726409AbeHHGke (ORCPT ); Wed, 8 Aug 2018 02:40:34 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 73DA2BBA3F4D6; Wed, 8 Aug 2018 12:22:49 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.399.0; Wed, 8 Aug 2018 12:22:41 +0800 From: Wei Yongjun To: Herbert Xu , Jonathan Cameron CC: Wei Yongjun , , Subject: [PATCH -next] crypto: hisilicon - Make function sec_send_request() static Date: Wed, 8 Aug 2018 04:30:09 +0000 Message-ID: <1533702609-162042-1-git-send-email-weiyongjun1@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following sparse warning: drivers/crypto/hisilicon/sec/sec_algs.c:396:5: warning: symbol 'sec_send_request' was not declared. Should it be static? Fixes: 915e4e8413da ("crypto: hisilicon - SEC security accelerator driver") Signed-off-by: Wei Yongjun --- drivers/crypto/hisilicon/sec/sec_algs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/sec/sec_algs.c b/drivers/crypto/hisilicon/sec/sec_algs.c index d69d3ce..03ba1df 100644 --- a/drivers/crypto/hisilicon/sec/sec_algs.c +++ b/drivers/crypto/hisilicon/sec/sec_algs.c @@ -393,7 +393,8 @@ static void sec_alg_free_el(struct sec_request_el *el, } /* queuelock must be held */ -int sec_send_request(struct sec_request *sec_req, struct sec_queue *queue) +static int sec_send_request(struct sec_request *sec_req, + struct sec_queue *queue) { struct sec_request_el *el, *temp; int ret = 0;