aboutsummaryrefslogtreecommitdiff
path: root/include/standard-headers/linux
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-02-18 16:37:35 +0100
committerMichael S. Tsirkin <mst@redhat.com>2015-02-26 13:04:09 +0100
commite0d2be2ad6461ccdcf3e3930742a6b18a7ee5eb8 (patch)
tree42e3ecfcf85ba52de77a7755159b86f8fc7ff6bb /include/standard-headers/linux
parent714e601379e125cde88bea6d4a3ea8f78ffbdf62 (diff)
downloadqemu-e0d2be2ad6461ccdcf3e3930742a6b18a7ee5eb8.zip
qemu-e0d2be2ad6461ccdcf3e3930742a6b18a7ee5eb8.tar.gz
qemu-e0d2be2ad6461ccdcf3e3930742a6b18a7ee5eb8.tar.bz2
virtio_ring.h: s/__inline__/inline/
Thomas Huth noticed that some linux headers use __inline__, change to inline to be consistent with the rest of QEMU. Reported-by: Thomas Huth <thuth@linux.vnet.ibm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/standard-headers/linux')
-rw-r--r--include/standard-headers/linux/virtio_ring.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/standard-headers/linux/virtio_ring.h b/include/standard-headers/linux/virtio_ring.h
index 2bd19a8..cc647d6 100644
--- a/include/standard-headers/linux/virtio_ring.h
+++ b/include/standard-headers/linux/virtio_ring.h
@@ -137,7 +137,7 @@ struct vring {
#define vring_used_event(vr) ((vr)->avail->ring[(vr)->num])
#define vring_avail_event(vr) (*(__virtio16 *)&(vr)->used->ring[(vr)->num])
-static __inline__ void vring_init(struct vring *vr, unsigned int num, void *p,
+static inline void vring_init(struct vring *vr, unsigned int num, void *p,
unsigned long align)
{
vr->num = num;
@@ -147,7 +147,7 @@ static __inline__ void vring_init(struct vring *vr, unsigned int num, void *p,
+ align-1) & ~(align - 1));
}
-static __inline__ unsigned vring_size(unsigned int num, unsigned long align)
+static inline unsigned vring_size(unsigned int num, unsigned long align)
{
return ((sizeof(struct vring_desc) * num + sizeof(__virtio16) * (3 + num)
+ align - 1) & ~(align - 1))
@@ -158,7 +158,7 @@ static __inline__ unsigned vring_size(unsigned int num, unsigned long align)
/* Assuming a given event_idx value from the other size, if
* we have just incremented index from old to new_idx,
* should we trigger an event? */
-static __inline__ int vring_need_event(uint16_t event_idx, uint16_t new_idx, uint16_t old)
+static inline int vring_need_event(uint16_t event_idx, uint16_t new_idx, uint16_t old)
{
/* Note: Xen has similar logic for notification hold-off
* in include/xen/interface/io/ring.h with req_event and req_prod