[PATCH v3 2/5] vhost: remove useless volatile
From: Zhihong Wang <hidden>
Date: 2016-08-19 12:51:58
Subsystem:
library code, the rest · Maintainers:
Andrew Morton, Linus Torvalds
From: Zhihong Wang <hidden>
Date: 2016-08-19 12:51:58
Subsystem:
library code, the rest · Maintainers:
Andrew Morton, Linus Torvalds
This patch removes useless volatile attribute to allow compiler optimization. Signed-off-by: Zhihong Wang <redacted> --- lib/librte_vhost/vhost-net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_vhost/vhost-net.h b/lib/librte_vhost/vhost-net.h
index 38593a2..51fdf3d 100644
--- a/lib/librte_vhost/vhost-net.h
+++ b/lib/librte_vhost/vhost-net.h@@ -71,7 +71,7 @@ struct vhost_virtqueue { uint32_t size; /* Last index used on the available ring */ - volatile uint16_t last_used_idx; + uint16_t last_used_idx; #define VIRTIO_INVALID_EVENTFD (-1) #define VIRTIO_UNINITIALIZED_EVENTFD (-2)
--
2.7.4