LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: hns3: Limiting the scope of vector_ring_chain variable
@ 2021-04-05 17:28 Salil Mehta
  2021-04-05 22:10 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 3+ messages in thread
From: Salil Mehta @ 2021-04-05 17:28 UTC (permalink / raw)
  To: davem, kuba; +Cc: salil.mehta, netdev, linux-kernel, linuxarm, linuxarm

Limiting the scope of the variable vector_ring_chain to the block where it
is used.

Fixes: 424eb834a9be ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC")
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
---
 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
index bf4302a5cf95..65752f363f43 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
@@ -3704,7 +3704,6 @@ static void hns3_nic_set_cpumask(struct hns3_nic_priv *priv)
 
 static int hns3_nic_init_vector_data(struct hns3_nic_priv *priv)
 {
-	struct hnae3_ring_chain_node vector_ring_chain;
 	struct hnae3_handle *h = priv->ae_handle;
 	struct hns3_enet_tqp_vector *tqp_vector;
 	int ret;
@@ -3736,6 +3735,8 @@ static int hns3_nic_init_vector_data(struct hns3_nic_priv *priv)
 	}
 
 	for (i = 0; i < priv->vector_num; i++) {
+		struct hnae3_ring_chain_node vector_ring_chain;
+
 		tqp_vector = &priv->tqp_vector[i];
 
 		tqp_vector->rx_group.total_bytes = 0;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net] net: hns3: Limiting the scope of vector_ring_chain variable
  2021-04-05 17:28 [PATCH net] net: hns3: Limiting the scope of vector_ring_chain variable Salil Mehta
@ 2021-04-05 22:10 ` patchwork-bot+netdevbpf
  2021-04-06  8:36   ` [Linuxarm] " Salil Mehta
  0 siblings, 1 reply; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-04-05 22:10 UTC (permalink / raw)
  To: Salil Mehta; +Cc: davem, kuba, netdev, linux-kernel, linuxarm, linuxarm

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Mon, 5 Apr 2021 18:28:25 +0100 you wrote:
> Limiting the scope of the variable vector_ring_chain to the block where it
> is used.
> 
> Fixes: 424eb834a9be ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC")
> Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
> ---
>  drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Here is the summary with links:
  - [net] net: hns3: Limiting the scope of vector_ring_chain variable
    https://git.kernel.org/netdev/net-next/c/d392ecd1bc29

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [Linuxarm]  Re: [PATCH net] net: hns3: Limiting the scope of vector_ring_chain variable
  2021-04-05 22:10 ` patchwork-bot+netdevbpf
@ 2021-04-06  8:36   ` Salil Mehta
  0 siblings, 0 replies; 3+ messages in thread
From: Salil Mehta @ 2021-04-06  8:36 UTC (permalink / raw)
  To: davem@davemloft.net, kuba@kernel.org
  Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Linuxarm,
	linuxarm@openeuler.org

Hi Dave,
Hope I am not missing something and not sure how this patchwork bot works,
the patch was sent for -net repo (i.e. bug fixes branch) but it got applied
to the -net-next repo.

> Subject: [Linuxarm] Re: [PATCH net] net: hns3: Limiting the scope of
> vector_ring_chain variable

[...]

> Hello:
> 
> This patch was applied to netdev/net-next.git (refs/heads/master):
>

I was wondering if I missed anything in my submission or because of some
other reason this patch was chosen to be applied to the -net-next repo
instead. Perhaps this is not classified as bug?

Many thanks
Salil

> From: patchwork-bot+netdevbpf@kernel.org
> [mailto:patchwork-bot+netdevbpf@kernel.org]
> Sent: Monday, April 5, 2021 11:10 PM
> To: Salil Mehta <salil.mehta@huawei.com>
> Cc: davem@davemloft.net; kuba@kernel.org; netdev@vger.kernel.org;
> linux-kernel@vger.kernel.org; Linuxarm <linuxarm@huawei.com>;
> linuxarm@openeuler.org
> Subject: [Linuxarm] Re: [PATCH net] net: hns3: Limiting the scope of
> vector_ring_chain variable
> 
> Hello:
> 
> This patch was applied to netdev/net-next.git (refs/heads/master):
> 
> On Mon, 5 Apr 2021 18:28:25 +0100 you wrote:
> > Limiting the scope of the variable vector_ring_chain to the block where it
> > is used.
> >
> > Fixes: 424eb834a9be ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08
> SoC")
> > Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
> > ---
> >  drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> Here is the summary with links:
>   - [net] net: hns3: Limiting the scope of vector_ring_chain variable
>     https://git.kernel.org/netdev/net-next/c/d392ecd1bc29
> 
> You are awesome, thank you!
> --
> Deet-doot-dot, I am a bot.
> https://korg.docs.kernel.org/patchwork/pwbot.html
> 
> _______________________________________________
> Linuxarm mailing list -- linuxarm@openeuler.org
> To unsubscribe send an email to linuxarm-leave@openeuler.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-06  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-05 17:28 [PATCH net] net: hns3: Limiting the scope of vector_ring_chain variable Salil Mehta
2021-04-05 22:10 ` patchwork-bot+netdevbpf
2021-04-06  8:36   ` [Linuxarm] " Salil Mehta

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 read-only IMAP folder(s) and NNTP newsgroup(s).