Skip to contentSkip to conversation

vhost: Make local function static

PATCH New Asias He 1 participant 1 message Jun 5, 2013

Subsystems (4)
lore
Share & tools
lore

Asias He

author
#0 lore raw

PATCH 1/1 vhost: Make local function static

$ make C=1 M=drivers/vhost

drivers/vhost/net.c:168:5: warning: symbol 'vhost_net_set_ubuf_info' was not declared. Should it be static? drivers/vhost/net.c:194:6: warning: symbol 'vhost_net_vq_reset' was not declared. Should it be static? drivers/vhost/scsi.c:219:6: warning: symbol 'tcm_vhost_done_inflight' was not declared. Should it be static?

---
 drivers/vhost/net.c  | 4 ++--
 drivers/vhost/scsi.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/vhost/net.c +2 -2
index 05bdc3c..f800901 100644
@@ -165,7 +165,7 @@ static void vhost_net_clear_ubuf_info(struct vhost_net *n)
 	}
 }
 
-int vhost_net_set_ubuf_info(struct vhost_net *n)
+static int vhost_net_set_ubuf_info(struct vhost_net *n)
 {
 	bool zcopy;
 	int i;
@@ -191,7 +191,7 @@ err:
 	return -ENOMEM;
 }
 
-void vhost_net_vq_reset(struct vhost_net *n)
+static void vhost_net_vq_reset(struct vhost_net *n)
 {
 	int i;
 
drivers/vhost/scsi.c +1 -1
index de6d817..35ab0ce 100644
@@ -216,7 +216,7 @@ static int iov_num_pages(struct iovec *iov)
 	       ((unsigned long)iov->iov_base & PAGE_MASK)) >> PAGE_SHIFT;
 }
 
-void tcm_vhost_done_inflight(struct kref *kref)
+static void tcm_vhost_done_inflight(struct kref *kref)
 {
 	struct vhost_scsi_inflight *inflight;
 
Signature · 1 line
1.8.1.4