vhost: Make local function static
authorAsias He <asias@redhat.com>
Wed, 5 Jun 2013 13:17:38 +0000 (21:17 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 7 Jul 2013 14:34:07 +0000 (17:34 +0300)
$ 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?

Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c
drivers/vhost/scsi.c

index 8ca5ac71b8452210517c128b6b7c12e7af832b4f..027be91db139c43eaadd5e12727c2b18c1a65bcc 100644 (file)
@@ -168,7 +168,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;
@@ -189,7 +189,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;
 
index 5531ebcc7276a2dadb378d1c0e91eb25728c5e8b..4264840ef7dcde2b0ed3fa15f4f5611e085fee62 100644 (file)
@@ -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;