Skip to contentSkip to conversation

ring: remove unnecessary forward declaration

PATCH Applied Xiaolong Ye 3 participants 3 messages May 16, 2019 – Jun 4, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ring: remove unnecessary forward declaration

As memzone.h is introduced by commit 38c9817ee1d8 ("mempool: adjust name size in related data types"), forward declaration for rte_memzone is no longer needed.

---
 lib/librte_ring/rte_ring.h | 2 --
 1 file changed, 2 deletions(-)
lib/librte_ring/rte_ring.h +0 -2
index e265e9479..e5a175cb3 100644
@@ -61,8 +61,6 @@ enum rte_ring_queue_behavior {
 #define RTE_RING_NAMESIZE (RTE_MEMZONE_NAMESIZE - \
 			   sizeof(RTE_RING_MZ_PREFIX) + 1)
 
-struct rte_memzone; /* forward declaration, so as not to require memzone.h */
-
 /* structure to hold a pair of head/tail values and other metadata */
 struct rte_ring_headtail {
 	volatile uint32_t head;  /**< Prod/consumer head. */
Signature · 1 line
2.17.1