net/vmxnet3: remove unused variable attribute
diff mbox series

Message ID 20190913184910.26085-1-ferruh.yigit@intel.com
State Accepted, archived
Delegated to: Ferruh Yigit
Headers show
Series
  • net/vmxnet3: remove unused variable attribute
Related show

Checks

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

Commit Message

Ferruh Yigit Sept. 13, 2019, 6:49 p.m. UTC
No functional change, just removing unused variable tag from a used
variable.

Fixes: 643fba770705 ("net/vmxnet3: add v4 boot and guest UDP RSS config")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Yong Wang Sept. 13, 2019, 6:51 p.m. UTC | #1
-----Original Message-----
From: Ferruh Yigit <ferruh.yigit@intel.com>
Date: Friday, September 13, 2019 at 11:49 AM
To: Yong Wang <yongwang@vmware.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, "stable@dpdk.org" <stable@dpdk.org>
Subject: [PATCH] net/vmxnet3: remove unused variable attribute

    No functional change, just removing unused variable tag from a used
    variable.
    
    Fixes: 643fba770705 ("net/vmxnet3: add v4 boot and guest UDP RSS config")
    Cc: stable@dpdk.org
    
    Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
    ---

Acked-By: Yong Wang <yongwang@vmware.com>

     drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c
    index 0cae08f63..7bf86122a 100644
    --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c
    +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c
    @@ -1152,7 +1152,7 @@ vmxnet3_dev_stats_reset(struct rte_eth_dev *dev)
     }
     
     static int
    -vmxnet3_dev_info_get(struct rte_eth_dev *dev __rte_unused,
    +vmxnet3_dev_info_get(struct rte_eth_dev *dev,
     		     struct rte_eth_dev_info *dev_info)
     {
     	struct vmxnet3_hw *hw = dev->data->dev_private;
    -- 
    2.21.0
Ferruh Yigit Sept. 13, 2019, 6:53 p.m. UTC | #2
On 9/13/2019 7:51 PM, Yong Wang wrote:
> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit@intel.com>
> Date: Friday, September 13, 2019 at 11:49 AM
> To: Yong Wang <yongwang@vmware.com>
> Cc: "dev@dpdk.org" <dev@dpdk.org>, "stable@dpdk.org" <stable@dpdk.org>
> Subject: [PATCH] net/vmxnet3: remove unused variable attribute
> 
>     No functional change, just removing unused variable tag from a used
>     variable.
>     
>     Fixes: 643fba770705 ("net/vmxnet3: add v4 boot and guest UDP RSS config")
>     Cc: stable@dpdk.org
>     
>     Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
>     ---
> 
> Acked-By: Yong Wang <yongwang@vmware.com>

Applied to dpdk-next-net/master, thanks.

Patch
diff mbox series

diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c
index 0cae08f63..7bf86122a 100644
--- a/drivers/net/vmxnet3/vmxnet3_ethdev.c
+++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c
@@ -1152,7 +1152,7 @@  vmxnet3_dev_stats_reset(struct rte_eth_dev *dev)
 }
 
 static int
-vmxnet3_dev_info_get(struct rte_eth_dev *dev __rte_unused,
+vmxnet3_dev_info_get(struct rte_eth_dev *dev,
 		     struct rte_eth_dev_info *dev_info)
 {
 	struct vmxnet3_hw *hw = dev->data->dev_private;