Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp641177ybz; Wed, 15 Apr 2020 15:45:31 -0700 (PDT) X-Google-Smtp-Source: APiQypLJrOQtE2qVqfDf5U1P1yN9ttWFQWBSssbRMuBaqS86GfY2HrgmahNMlhLpyyrmrAR16XlB X-Received: by 2002:a17:906:d1c4:: with SMTP id bs4mr7051894ejb.109.1586990731535; Wed, 15 Apr 2020 15:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586990731; cv=none; d=google.com; s=arc-20160816; b=aGBc8Mgb+3fo1XE8uSIz8z7r6fawQOtQYi/HZC7+FQolC/Hn0yFDrbuWY6U86mPGrr rJqV2tT2OlfS6yQ1WL7ITMdnmObDiheroshL3mcpccctApoT1rzHN6aFxQR/jFHXtM53 tqOGPF+yFEHKR71+4IWc3Ze2YBQ2/olVzRZ1R0Ut16EnkjWa9+NvD/7hjy2Uk+Bv7GZ8 zD/Lfwbid0GF7oBc5xsa4aubRbGer2pi9ATqD8DhCP3oVP0oMhlrMN0ucmXayXwbOR03 N9tAODM7IA/PrapwQhxHM2wMhDdSluuV+BY4TZPWq8jys+18b+XzDFn5Oq67KQcCVY9F RW9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Uvybc+aJkNz0SNK3TbohMeyLcD32Sp4nlQV6zNGB+CU=; b=XQZ+03KURT0Ku/YsuLzT1HoQlA+V40WpvO545WX1V3VSV7Tv+6cH5EouYrCFCG16+j p+jENVRJra7j83kO9ZU+quRtUg4Ib0L3KVZKLeNMvc3PJp9mVTykPEOQTvDx+M20CShy ywCW28AX9hAi85a6xMfmR4rAnT1qJi+cIwzd9c+ajx5I0nelFDGcrpfhm8qWRb6iT0VB uyZkxxFouOBEjY9Yj2Q7whTxW28ooTIQAdm9DMR1o6Nl7QwySYGEmjWPBK5FQ1QC6bZ9 6mGVITcF6A/SrkXu5rtoZ3SQyKsRfCtfTzCmiTgRoCnmTeUcHgxF8nET7V/GabipOoDW N/ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si11696140edo.81.2020.04.15.15.45.07; Wed, 15 Apr 2020 15:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2635918AbgDOJMm (ORCPT + 99 others); Wed, 15 Apr 2020 05:12:42 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39176 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2408349AbgDOJMN (ORCPT ); Wed, 15 Apr 2020 05:12:13 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 30489A6CD76B3349AA29; Wed, 15 Apr 2020 17:12:11 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Wed, 15 Apr 2020 17:12:00 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH 3/3] scsi: fnic: make vnic_wq_get_ctrl and vnic_wq_alloc_ring static Date: Wed, 15 Apr 2020 17:38:09 +0800 Message-ID: <20200415093809.9365-3-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200415093809.9365-1-yanaijie@huawei.com> References: <20200415093809.9365-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/scsi/fnic/vnic_wq.c:28:5: warning: symbol 'vnic_wq_get_ctrl' was not declared. Should it be static? drivers/scsi/fnic/vnic_wq.c:40:5: warning: symbol 'vnic_wq_alloc_ring' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/scsi/fnic/vnic_wq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/fnic/vnic_wq.c b/drivers/scsi/fnic/vnic_wq.c index 015af2cdabaf..442972c04e65 100644 --- a/drivers/scsi/fnic/vnic_wq.c +++ b/drivers/scsi/fnic/vnic_wq.c @@ -25,7 +25,7 @@ #include "vnic_wq.h" -int vnic_wq_get_ctrl(struct vnic_dev *vdev, struct vnic_wq *wq, +static int vnic_wq_get_ctrl(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, enum vnic_res_type res_type) { wq->ctrl = vnic_dev_get_res(vdev, res_type, index); @@ -37,7 +37,7 @@ int vnic_wq_get_ctrl(struct vnic_dev *vdev, struct vnic_wq *wq, } -int vnic_wq_alloc_ring(struct vnic_dev *vdev, struct vnic_wq *wq, +static int vnic_wq_alloc_ring(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int desc_count, unsigned int desc_size) { return vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); -- 2.21.1