aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/socket.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-16 01:03:21 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-16 03:28:38 +0200
commite3fe672a287240cb19d627f6b0003e391b73975d (patch)
tree6c58cfe16a0cde5dc485ab1169ac83187037f9da /src/socket.c
parentsend/receive: reduce number of sg entries (diff)
downloadwireguard-monolithic-historical-e3fe672a287240cb19d627f6b0003e391b73975d.tar.xz
wireguard-monolithic-historical-e3fe672a287240cb19d627f6b0003e391b73975d.zip
global: remove non-essential inline annotations
Diffstat (limited to '')
-rw-r--r--src/socket.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/socket.c b/src/socket.c
index 2e9e44f..da6aaa7 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -17,9 +17,8 @@
#include <net/udp_tunnel.h>
#include <net/ipv6.h>
-static inline int send4(struct wireguard_device *wg, struct sk_buff *skb,
- struct endpoint *endpoint, u8 ds,
- struct dst_cache *cache)
+static int send4(struct wireguard_device *wg, struct sk_buff *skb,
+ struct endpoint *endpoint, u8 ds, struct dst_cache *cache)
{
struct flowi4 fl = {
.saddr = endpoint->src4.s_addr,
@@ -99,9 +98,8 @@ out:
return ret;
}
-static inline int send6(struct wireguard_device *wg, struct sk_buff *skb,
- struct endpoint *endpoint, u8 ds,
- struct dst_cache *cache)
+static int send6(struct wireguard_device *wg, struct sk_buff *skb,
+ struct endpoint *endpoint, u8 ds, struct dst_cache *cache)
{
#if IS_ENABLED(CONFIG_IPV6)
struct flowi6 fl = {
@@ -264,8 +262,7 @@ int socket_endpoint_from_skb(struct endpoint *endpoint,
return 0;
}
-static inline bool endpoint_eq(const struct endpoint *a,
- const struct endpoint *b)
+static bool endpoint_eq(const struct endpoint *a, const struct endpoint *b)
{
return (a->addr.sa_family == AF_INET && b->addr.sa_family == AF_INET &&
a->addr4.sin_port == b->addr4.sin_port &&
@@ -339,7 +336,7 @@ err:
return 0;
}
-static inline void sock_free(struct sock *sock)
+static void sock_free(struct sock *sock)
{
if (unlikely(!sock))
return;
@@ -347,7 +344,7 @@ static inline void sock_free(struct sock *sock)
udp_tunnel_sock_release(sock->sk_socket);
}
-static inline void set_sock_opts(struct socket *sock)
+static void set_sock_opts(struct socket *sock)
{
sock->sk->sk_allocation = GFP_ATOMIC;
sock->sk->sk_sndbuf = INT_MAX;