Skip to content

Commit

Permalink
virtqueue: name is const in virtqueue_create()
Browse files Browse the repository at this point in the history
Signed-off-by: Wendy Liang <[email protected]>
  • Loading branch information
wjliang authored and galak committed May 9, 2018
1 parent 1104824 commit de361ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/include/openamp/virtqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ typedef void vq_notify(struct virtqueue *);
#endif

int virtqueue_create(struct virtio_device *device, unsigned short id,
char *name, struct vring_alloc_info *ring,
const char *name, struct vring_alloc_info *ring,
void (*callback) (struct virtqueue * vq),
void (*notify) (struct virtqueue * vq),
struct metal_io_region *shm_io,
Expand Down
2 changes: 1 addition & 1 deletion lib/virtio/virtqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static int virtqueue_nused(struct virtqueue *vq);
* @return - Function status
*/
int virtqueue_create(struct virtio_device *virt_dev, unsigned short id,
char *name, struct vring_alloc_info *ring,
const char *name, struct vring_alloc_info *ring,
void (*callback) (struct virtqueue * vq),
void (*notify) (struct virtqueue * vq),
struct metal_io_region *shm_io,
Expand Down

0 comments on commit de361ad

Please sign in to comment.