Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: fnic: make vnic_wq_get_ctrl and vnic_wq_alloc_ring static

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>

authored by

Jason Yan and committed by
Martin K. Petersen
9ae58380 1d8baf9e

+2 -2
+2 -2
drivers/scsi/fnic/vnic_wq.c
··· 25 25 #include "vnic_wq.h" 26 26 27 27 28 - int vnic_wq_get_ctrl(struct vnic_dev *vdev, struct vnic_wq *wq, 28 + static int vnic_wq_get_ctrl(struct vnic_dev *vdev, struct vnic_wq *wq, 29 29 unsigned int index, enum vnic_res_type res_type) 30 30 { 31 31 wq->ctrl = vnic_dev_get_res(vdev, res_type, index); ··· 37 37 } 38 38 39 39 40 - int vnic_wq_alloc_ring(struct vnic_dev *vdev, struct vnic_wq *wq, 40 + static int vnic_wq_alloc_ring(struct vnic_dev *vdev, struct vnic_wq *wq, 41 41 unsigned int desc_count, unsigned int desc_size) 42 42 { 43 43 return vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size);