diff options
author | Kuniyuki Iwashima <kuniyu@amazon.co.jp> | 2022-04-20 03:58:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-22 13:47:50 +0200 |
commit | 89e9c7280075f6733b22dd0740daeddeb1256ebf (patch) | |
tree | 926a7145056285b2d72e09438f605bbd798c47ca /include | |
parent | USB2NET : SR9800 : change SR9800_BULKIN_SIZE from global to static (diff) | |
download | linux-89e9c7280075f6733b22dd0740daeddeb1256ebf.tar.xz linux-89e9c7280075f6733b22dd0740daeddeb1256ebf.zip |
ipv6: Remove __ipv6_only_sock().
Since commit 9fe516ba3fb2 ("inet: move ipv6only in sock_common"),
ipv6_only_sock() and __ipv6_only_sock() are the same macro. Let's
remove the one.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ipv6.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 918bfea4ef5f..ec5ca392eaa3 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h @@ -340,8 +340,7 @@ static inline struct raw6_sock *raw6_sk(const struct sock *sk) return (struct raw6_sock *)sk; } -#define __ipv6_only_sock(sk) (sk->sk_ipv6only) -#define ipv6_only_sock(sk) (__ipv6_only_sock(sk)) +#define ipv6_only_sock(sk) (sk->sk_ipv6only) #define ipv6_sk_rxinfo(sk) ((sk)->sk_family == PF_INET6 && \ inet6_sk(sk)->rxopt.bits.rxinfo) @@ -358,7 +357,6 @@ static inline int inet_v6_ipv6only(const struct sock *sk) return ipv6_only_sock(sk); } #else -#define __ipv6_only_sock(sk) 0 #define ipv6_only_sock(sk) 0 #define ipv6_sk_rxinfo(sk) 0 |