scsi: fnic: make vnic_wq_get_ctrl and vnic_wq_alloc_ring static
authorJason Yan <yanaijie@huawei.com>
Wed, 15 Apr 2020 09:38:09 +0000 (17:38 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Apr 2020 17:48:05 +0000 (13:48 -0400)
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?

Link: https://lore.kernel.org/r/20200415093809.9365-3-yanaijie@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/vnic_wq.c

index 015af2cdabaf1d35d1d0f992271d9cbdefd881fd..442972c04e65d39277b3f614f9048692b7f28af9 100644 (file)
@@ -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);