Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1284628pxb; Sat, 16 Apr 2022 04:13:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9W4th1jKWaiGKJWPfkgreFm+bMC6R3ZNtHpBHbdZbSAY3qDNMZpXA9arjBrJ57PSyB8o/ X-Received: by 2002:a17:902:ecc4:b0:156:b8ab:3ad with SMTP id a4-20020a170902ecc400b00156b8ab03admr3136099plh.132.1650107594146; Sat, 16 Apr 2022 04:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650107594; cv=none; d=google.com; s=arc-20160816; b=ieijR9Pe7+E9jEimnhdNhM5K1eGZkl+pvHObnBF7AqaNrfgicJ9I5j04jPVP3P4OM+ uHeKqMuJHfYUD9nL+5TPtad9uXAnXj5v/Ga+e14Du2S8eW9hy1r5NSD/HrdBuPCFrrvV fpGm/Rv1XZn976fI06SlTr+ujCsv90KfvhgOUXvMyKUsVcMHATUjFmpTNGNp2drd76cl tWmtab1BHQJgatCNGMf4sl4kw7deH1Rx5IheSuAsJwpqvxMEvduVPqW5WmmN2nxgbfi+ LdEFeELV3S7GTl3BKz9Jtw8IXinyNc5n+Q6NSZDEJp0snfKA46PlN1tDFCluPQNhbOQT tfBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xiYhk5toSPPIFRv/az4KwxWY5djjz1dDz2EhkvcmafM=; b=gGUEnwtCOAeZznGdaAmH1KK5EyQFwzMksbl7sta1WUNjreVqhlQ8v1YBe25tw/7PoW VlVNlYxGGkIhNLNgugyM1q12oe8eoqUqn/oWfTyw2p5GYqmR/utQADyHkt8E8wRp3fdI wTJMgoUMG87YqFuItwQpIBpjE7jf3VELy+r3ImkprzrrX3JxDfYyKTczPOxpbZ7t9euB +dFQwKNl4GNTX1SrHSzEMb7c/cOQx8jsoKM4ATyhDw0iE6sfyVooxBFOo6LsqaUgMlMn P5nL5s6A5d+WntIy9+UfpAan4mMfAmGTBRYBqjU9avoTUecrNt6qxncGYCmDH/egvb2r Ju8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j64-20020a638043000000b003a30c1acb27si2266349pgd.280.2022.04.16.04.12.58; Sat, 16 Apr 2022 04:13:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231552AbiDPKyX (ORCPT + 99 others); Sat, 16 Apr 2022 06:54:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231532AbiDPKyT (ORCPT ); Sat, 16 Apr 2022 06:54:19 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E96D43A5CF; Sat, 16 Apr 2022 03:51:47 -0700 (PDT) Received: from kwepemi100009.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KgVPX2DsdzgYv5; Sat, 16 Apr 2022 18:51:44 +0800 (CST) Received: from kwepemm600009.china.huawei.com (7.193.23.164) by kwepemi100009.china.huawei.com (7.221.188.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 16 Apr 2022 18:51:46 +0800 Received: from localhost.localdomain (10.67.165.24) by kwepemm600009.china.huawei.com (7.193.23.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 16 Apr 2022 18:51:45 +0800 From: Weili Qian To: , CC: , , , , Weili Qian Subject: [PATCH 2/4] crypto: hisilicon/qm - set function with static Date: Sat, 16 Apr 2022 18:45:57 +0800 Message-ID: <20220416104559.10826-3-qianweili@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220416104559.10826-1-qianweili@huawei.com> References: <20220416104559.10826-1-qianweili@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600009.china.huawei.com (7.193.23.164) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These functions 'hisi_qm_create_qp' and 'hisi_qm_set_vft' are not used outside qm.c, so they are marked as static. Signed-off-by: Weili Qian --- drivers/crypto/hisilicon/qm.c | 6 ++---- include/linux/hisi_acc_qm.h | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 009132333d2b..582220178ec8 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -2660,7 +2660,7 @@ static struct hisi_qp *qm_create_qp_nolock(struct hisi_qm *qm, u8 alg_type) * return created qp, -EBUSY if all qps in qm allocated, -ENOMEM if allocating * qp memory fails. */ -struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type) +static struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type) { struct hisi_qp *qp; int ret; @@ -2678,7 +2678,6 @@ struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type) return qp; } -EXPORT_SYMBOL_GPL(hisi_qm_create_qp); /** * hisi_qm_release_qp() - Release a qp back to its qm. @@ -3550,7 +3549,7 @@ EXPORT_SYMBOL_GPL(hisi_qm_uninit); * * qm hw v1 does not support this interface. */ -int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number) +static int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number) { if (!base || !number) return -EINVAL; @@ -3562,7 +3561,6 @@ int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number) return qm->ops->get_vft(qm, base, number); } -EXPORT_SYMBOL_GPL(hisi_qm_get_vft); /** * hisi_qm_set_vft() - Set vft to a qm. diff --git a/include/linux/hisi_acc_qm.h b/include/linux/hisi_acc_qm.h index 0b1585bc37f9..6fabfba014dd 100644 --- a/include/linux/hisi_acc_qm.h +++ b/include/linux/hisi_acc_qm.h @@ -433,13 +433,11 @@ int hisi_qm_init(struct hisi_qm *qm); void hisi_qm_uninit(struct hisi_qm *qm); int hisi_qm_start(struct hisi_qm *qm); int hisi_qm_stop(struct hisi_qm *qm, enum qm_stop_reason r); -struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type); int hisi_qm_start_qp(struct hisi_qp *qp, unsigned long arg); int hisi_qm_stop_qp(struct hisi_qp *qp); void hisi_qm_release_qp(struct hisi_qp *qp); int hisi_qp_send(struct hisi_qp *qp, const void *msg); int hisi_qm_get_free_qp_num(struct hisi_qm *qm); -int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number); void hisi_qm_debug_init(struct hisi_qm *qm); void hisi_qm_debug_regs_clear(struct hisi_qm *qm); int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs); -- 2.33.0