Skip to contentSkip to conversation

ipv6: fix ip6_sock_set_addr_preferences() typo

PATCH Applied Eric Dumazet 3 participants 3 messages Sep 11, 2023 – Sep 12, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv6: fix ip6_sock_set_addr_preferences() typo

ip6_sock_set_addr_preferences() second argument should be an integer.

SUNRPC attempts to set IPV6_PREFER_SRC_PUBLIC were translated to IPV6_PREFER_SRC_TMP

Fixes 18d5ad623275 ("ipv6: add ip6_sock_set_addr_preferences")
Cc Christoph Hellwig <[email protected]>
Cc Chuck Lever <[email protected]>
---
 include/net/ipv6.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/ipv6.h +1 -1
index 0675be0f3fa0efc55575bb5b2569dc8a1dbb9f24..fe274c122a563ce3a11b03e49ee71780b3dbda96 100644
@@ -1360,7 +1360,7 @@ static inline int __ip6_sock_set_addr_preferences(struct sock *sk, int val)
 	return 0;
 }
 
-static inline int ip6_sock_set_addr_preferences(struct sock *sk, bool val)
+static inline int ip6_sock_set_addr_preferences(struct sock *sk, int val)
 {
 	int ret;
 
Signature · 1 line
2.42.0.283.g2d96d420d3-goog
#2 lore raw
In reply to Eric Dumazet
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:

Quoted 11 lines · On Mon, 11 Sep 2023 15:42:13 +0000 you wrote:

ip6_sock_set_addr_preferences() second argument should be an integer.

SUNRPC attempts to set IPV6_PREFER_SRC_PUBLIC were translated to IPV6_PREFER_SRC_TMP

Fixes 18d5ad623275 ("ipv6: add ip6_sock_set_addr_preferences")
Cc Christoph Hellwig <[email protected]>
Cc Chuck Lever <[email protected]>

[...]

Here is the summary with links:
- [net] ipv6: fix ip6_sock_set_addr_preferences() typo
https://git.kernel.org/netdev/net/c/8cdd9f1aaedf

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html