[dpdk-dev] [PATCH v6 3/6] vhost: remove useless volatile
Zhihong Wang
zhihong.wang at intel.com
Tue Sep 20 04:00:14 CEST 2016
This patch removes useless volatile attribute to allow compiler
optimization.
Signed-off-by: Zhihong Wang <zhihong.wang at intel.com>
---
lib/librte_vhost/vhost.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h
index c2dfc3c..9707dfc 100644
--- a/lib/librte_vhost/vhost.h
+++ b/lib/librte_vhost/vhost.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
More information about the dev
mailing list