With shadow warnings enabled there were a couple of cases
to fix. One was simple reuse of 'ret', other was overlap
between type and variable name.

Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
---
 lib/ethdev/ethdev_driver.c | 2 +-
 lib/ethdev/ethdev_driver.h | 6 +++---
 lib/ethdev/rte_ethdev.c    | 1 -
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/lib/ethdev/ethdev_driver.c b/lib/ethdev/ethdev_driver.c
index ec0c1e1176..11ffaa2219 100644
--- a/lib/ethdev/ethdev_driver.c
+++ b/lib/ethdev/ethdev_driver.c
@@ -295,7 +295,7 @@ RTE_EXPORT_INTERNAL_SYMBOL(rte_eth_dev_create)
 int
 rte_eth_dev_create(struct rte_device *device, const char *name,
        size_t priv_data_size,
-       ethdev_bus_specific_init ethdev_bus_specific_init,
+       ethdev_bus_specific_init_t ethdev_bus_specific_init,
        void *bus_init_params,
        ethdev_init_t ethdev_init, void *init_params)
 {
diff --git a/lib/ethdev/ethdev_driver.h b/lib/ethdev/ethdev_driver.h
index 2b4d2ae9c3..4c2f2e3489 100644
--- a/lib/ethdev/ethdev_driver.h
+++ b/lib/ethdev/ethdev_driver.h
@@ -1998,8 +1998,8 @@ rte_eth_devargs_parse(const char *devargs, struct 
rte_eth_devargs *eth_devargs,
 
 
 typedef int (*ethdev_init_t)(struct rte_eth_dev *ethdev, void *init_params);
-typedef int (*ethdev_bus_specific_init)(struct rte_eth_dev *ethdev,
-       void *bus_specific_init_params);
+typedef int (*ethdev_bus_specific_init_t)(struct rte_eth_dev *ethdev,
+                                         void *bus_specific_init_params);
 
 /**
  * PMD helper function for the creation of a new ethdev ports.
@@ -2026,7 +2026,7 @@ __rte_internal
 int
 rte_eth_dev_create(struct rte_device *device, const char *name,
        size_t priv_data_size,
-       ethdev_bus_specific_init bus_specific_init, void *bus_init_params,
+       ethdev_bus_specific_init_t bus_specific_init, void *bus_init_params,
        ethdev_init_t ethdev_init, void *init_params);
 
 
diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c
index dd7c00bc94..9934e48415 100644
--- a/lib/ethdev/rte_ethdev.c
+++ b/lib/ethdev/rte_ethdev.c
@@ -2468,7 +2468,6 @@ rte_eth_rx_queue_setup(uint16_t port_id, uint16_t 
rx_queue_id,
        if (local_conf.offloads & RTE_ETH_RX_OFFLOAD_TCP_LRO) {
                uint32_t overhead_len;
                uint32_t max_rx_pktlen;
-               int ret;
 
                overhead_len = eth_dev_get_overhead_len(dev_info.max_rx_pktlen,
                                dev_info.max_mtu);
-- 
2.47.2

Reply via email to