[v2,6/6] bus/pci: remove duplicate declaration

Message ID 20200914082350.13279-7-david.marchand@redhat.com (mailing list archive)
State Superseded, archived
Delegated to: David Marchand
Headers
Series 20.11 announced cleanups |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail apply issues

Commit Message

David Marchand Sept. 14, 2020, 8:23 a.m. UTC
  This declaration is the same as the one a few lines before.

Fixes: 6844d146ff39 ("eal: add bus pointer in device structure")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 drivers/bus/pci/private.h | 2 --
 1 file changed, 2 deletions(-)
  

Comments

Andrew Rybchenko Sept. 14, 2020, 10:24 a.m. UTC | #1
On 9/14/20 11:23 AM, David Marchand wrote:
> This declaration is the same as the one a few lines before.
> 
> Fixes: 6844d146ff39 ("eal: add bus pointer in device structure")
> Cc: stable@dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>

Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
  

Patch

diff --git a/drivers/bus/pci/private.h b/drivers/bus/pci/private.h
index 530123767b..9aa7e67c73 100644
--- a/drivers/bus/pci/private.h
+++ b/drivers/bus/pci/private.h
@@ -15,8 +15,6 @@  extern struct rte_pci_bus rte_pci_bus;
 struct rte_pci_driver;
 struct rte_pci_device;
 
-extern struct rte_pci_bus rte_pci_bus;
-
 /**
  * Scan the content of the PCI bus, and the devices in the devices
  * list