提交 0a1febf7 编写于 作者: A Asias He 提交者: Michael S. Tsirkin

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?
Signed-off-by: NAsias He <asias@redhat.com>
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
上级 6ac1afbf
...@@ -168,7 +168,7 @@ static void vhost_net_clear_ubuf_info(struct vhost_net *n) ...@@ -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; bool zcopy;
int i; int i;
...@@ -189,7 +189,7 @@ int vhost_net_set_ubuf_info(struct vhost_net *n) ...@@ -189,7 +189,7 @@ int vhost_net_set_ubuf_info(struct vhost_net *n)
return -ENOMEM; return -ENOMEM;
} }
void vhost_net_vq_reset(struct vhost_net *n) static void vhost_net_vq_reset(struct vhost_net *n)
{ {
int i; int i;
......
...@@ -216,7 +216,7 @@ static int iov_num_pages(struct iovec *iov) ...@@ -216,7 +216,7 @@ static int iov_num_pages(struct iovec *iov)
((unsigned long)iov->iov_base & PAGE_MASK)) >> PAGE_SHIFT; ((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; struct vhost_scsi_inflight *inflight;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册