Skip to content

Commit

Permalink
vhost: Make local function static
Browse files Browse the repository at this point in the history
$ 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>
  • Loading branch information
Asias He authored and Michael S. Tsirkin committed Jul 7, 2013
1 parent 6ac1afb commit 0a1febf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/vhost/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -189,7 +189,7 @@ int vhost_net_set_ubuf_info(struct vhost_net *n)
return -ENOMEM;
}

void vhost_net_vq_reset(struct vhost_net *n)
static void vhost_net_vq_reset(struct vhost_net *n)
{
int i;

Expand Down
2 changes: 1 addition & 1 deletion drivers/vhost/scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0a1febf

Please sign in to comment.