[PATCH net-next] net: tcp: fix shim definition of tcp_inbound_md5_hash

Subsystems: networking [general], networking [tcp], the rest

STALE1641d LANDED

Landed in mainline as 24055bb87977 on 2022-03-09.

3 messages, 3 authors, 2022-03-09 · open the first message on its own page

[PATCH net-next] net: tcp: fix shim definition of tcp_inbound_md5_hash

From: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: 2022-03-09 12:20:46

When CONFIG_TCP_MD5SIG isn't enabled, there is a compilation bug due to
the fact that the static inline definition of tcp_inbound_md5_hash() has
an unexpected semicolon. Remove it.

Fixes: 1330b6ef3313 ("skb: make drop reason booleanable")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 include/net/tcp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/tcp.h b/include/net/tcp.h
index ee8237b58e1d..70ca4a5e330a 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1693,7 +1693,7 @@ tcp_md5_do_lookup(const struct sock *sk, int l3index,
 static inline enum skb_drop_reason
 tcp_inbound_md5_hash(const struct sock *sk, const struct sk_buff *skb,
 		     const void *saddr, const void *daddr,
-		     int family, int dif, int sdif);
+		     int family, int dif, int sdif)
 {
 	return SKB_NOT_DROPPED_YET;
 }
-- 
2.25.1

Re: [PATCH net-next] net: tcp: fix shim definition of tcp_inbound_md5_hash

From: Eric Dumazet <edumazet@google.com>
Date: 2022-03-09 16:46:44

On Wed, Mar 9, 2022 at 4:20 AM Vladimir Oltean [off-list ref] wrote:
When CONFIG_TCP_MD5SIG isn't enabled, there is a compilation bug due to
the fact that the static inline definition of tcp_inbound_md5_hash() has
an unexpected semicolon. Remove it.

Fixes: 1330b6ef3313 ("skb: make drop reason booleanable")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
Reviewed-by: Eric Dumazet <edumazet@google.com>

Thanks!

Re: [PATCH net-next] net: tcp: fix shim definition of tcp_inbound_md5_hash

From: patchwork-bot+netdevbpf@kernel.org
Date: 2022-03-09 17:01:34

Hello:

This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski [off-list ref]:

On Wed,  9 Mar 2022 14:20:12 +0200 you wrote:
When CONFIG_TCP_MD5SIG isn't enabled, there is a compilation bug due to
the fact that the static inline definition of tcp_inbound_md5_hash() has
an unexpected semicolon. Remove it.

Fixes: 1330b6ef3313 ("skb: make drop reason booleanable")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>

[...]
Here is the summary with links:
  - [net-next] net: tcp: fix shim definition of tcp_inbound_md5_hash
    https://git.kernel.org/netdev/net-next/c/24055bb87977

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help