diff options
Diffstat (limited to 'include/linux/virtio.h')
-rw-r--r-- | include/linux/virtio.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 73ad7243128f..ec1706e7df50 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h | |||
@@ -25,21 +25,12 @@ struct virtqueue { | |||
25 | void *priv; | 25 | void *priv; |
26 | }; | 26 | }; |
27 | 27 | ||
28 | int virtqueue_add_buf_gfp(struct virtqueue *vq, | 28 | int virtqueue_add_buf(struct virtqueue *vq, |
29 | struct scatterlist sg[], | 29 | struct scatterlist sg[], |
30 | unsigned int out_num, | 30 | unsigned int out_num, |
31 | unsigned int in_num, | 31 | unsigned int in_num, |
32 | void *data, | 32 | void *data, |
33 | gfp_t gfp); | 33 | gfp_t gfp); |
34 | |||
35 | static inline int virtqueue_add_buf(struct virtqueue *vq, | ||
36 | struct scatterlist sg[], | ||
37 | unsigned int out_num, | ||
38 | unsigned int in_num, | ||
39 | void *data) | ||
40 | { | ||
41 | return virtqueue_add_buf_gfp(vq, sg, out_num, in_num, data, GFP_ATOMIC); | ||
42 | } | ||
43 | 34 | ||
44 | void virtqueue_kick(struct virtqueue *vq); | 35 | void virtqueue_kick(struct virtqueue *vq); |
45 | 36 | ||