From: Xiaolong Ye <xiaolong.ye@intel.com>
To: Olivier Matz <olivier.matz@6wind.com>
Cc: dev@dpdk.org, Xiaolong Ye <xiaolong.ye@intel.com>
Subject: [dpdk-dev] [PATCH] ring: remove unnecessary forward declaration
Date: Thu, 16 May 2019 15:28:56 +0800 [thread overview]
Message-ID: <20190516072856.27086-1-xiaolong.ye@intel.com> (raw)
Message-ID: <20190516072856.61vpBkma8EhDDTwQnMKr9uN0uOENoatxqu1BUAPpWSs@z> (raw)
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.
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
---
lib/librte_ring/rte_ring.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h
index e265e9479..e5a175cb3 100644
--- a/lib/librte_ring/rte_ring.h
+++ b/lib/librte_ring/rte_ring.h
@@ -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. */
--
2.17.1
next reply other threads:[~2019-05-16 7:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-16 7:28 Xiaolong Ye [this message]
2019-05-16 7:28 ` Xiaolong Ye
2019-05-16 7:58 ` Olivier Matz
2019-05-16 7:58 ` Olivier Matz
2019-06-04 11:10 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190516072856.27086-1-xiaolong.ye@intel.com \
--to=xiaolong.ye@intel.com \
--cc=dev@dpdk.org \
--cc=olivier.matz@6wind.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).