2021-04-01 08:42:40

by Jiabing Wan

[permalink] [raw]
Subject: [PATCH] net: smc: Remove repeated struct declaration

struct smc_clc_msg_local is declared twice. One is declared at
301st line. The blew one is not needed. Remove the duplicate.

Signed-off-by: Wan Jiabing <[email protected]>
---
net/smc/smc_core.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/net/smc/smc_core.h b/net/smc/smc_core.h
index e8e448771f85..6d6fd1397c87 100644
--- a/net/smc/smc_core.h
+++ b/net/smc/smc_core.h
@@ -410,7 +410,6 @@ static inline void smc_set_pci_values(struct pci_dev *pci_dev,

struct smc_sock;
struct smc_clc_msg_accept_confirm;
-struct smc_clc_msg_local;

void smc_lgr_cleanup_early(struct smc_connection *conn);
void smc_lgr_terminate_sched(struct smc_link_group *lgr);
--
2.25.1


2021-04-01 18:08:32

by Karsten Graul

[permalink] [raw]
Subject: Re: [PATCH] net: smc: Remove repeated struct declaration

On 01/04/2021 10:40, Wan Jiabing wrote:
> struct smc_clc_msg_local is declared twice. One is declared at
> 301st line. The blew one is not needed. Remove the duplicate.
>
> Signed-off-by: Wan Jiabing <[email protected]>
> ---
> net/smc/smc_core.h | 1 -
> 1 file changed, 1 deletion(-)
>

Acked-by: Karsten Graul <[email protected]>

2021-04-01 23:21:19

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH] net: smc: Remove repeated struct declaration

Hello:

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

On Thu, 1 Apr 2021 16:40:29 +0800 you wrote:
> struct smc_clc_msg_local is declared twice. One is declared at
> 301st line. The blew one is not needed. Remove the duplicate.
>
> Signed-off-by: Wan Jiabing <[email protected]>
> ---
> net/smc/smc_core.h | 1 -
> 1 file changed, 1 deletion(-)

Here is the summary with links:
- net: smc: Remove repeated struct declaration
https://git.kernel.org/netdev/net-next/c/ec7e48ca4bc7

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