ethdev: remove unused forward declaration.

Message ID 1532507404-19279-1-git-send-email-rami.rosen@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series ethdev: remove unused forward declaration. |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Rami Rosen July 25, 2018, 8:30 a.m. UTC
  The forward declaraion of rte_pci_device in rte_ethdev.h
is not needed anymore.
Fixes: cd8c7c7ce241 ("replace bus specific struct with generic dev")

Signed-off-by: Rami Rosen <rami.rosen@intel.com>
---
 lib/librte_ethdev/rte_ethdev.h | 2 --
 1 file changed, 2 deletions(-)
  

Comments

Andrew Rybchenko July 25, 2018, 5:52 p.m. UTC | #1
On 25.07.2018 11:30, Rami Rosen wrote:
> The forward declaraion of rte_pci_device in rte_ethdev.h
> is not needed anymore.
> Fixes: cd8c7c7ce241 ("replace bus specific struct with generic dev")
>
> Signed-off-by: Rami Rosen <rami.rosen@intel.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
  
Thomas Monjalon Aug. 1, 2018, 3 p.m. UTC | #2
25/07/2018 19:52, Andrew Rybchenko:
> On 25.07.2018 11:30, Rami Rosen wrote:
> > The forward declaraion of rte_pci_device in rte_ethdev.h
> > is not needed anymore.
> > Fixes: cd8c7c7ce241 ("replace bus specific struct with generic dev")
> >
> > Signed-off-by: Rami Rosen <rami.rosen@intel.com>
> Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>

Applied, thanks
  

Patch

diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h
index f5f593b..b146dc6 100644
--- a/lib/librte_ethdev/rte_ethdev.h
+++ b/lib/librte_ethdev/rte_ethdev.h
@@ -964,8 +964,6 @@  struct rte_eth_conf {
  * mentioned in rte_tx_offload_names in rte_ethdev.c file.
  */
 
-struct rte_pci_device;
-
 /*
  * Fallback default preferred Rx/Tx port parameters.
  * These are used if an application requests default parameters