Commit 3fbe070a authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[UDP]: deinline

A couple of functions are exported or used indirectly
so it is pointless to mark them as inline.
Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f05f629
...@@ -213,13 +213,13 @@ int __udp_lib_get_port(struct sock *sk, unsigned short snum, ...@@ -213,13 +213,13 @@ int __udp_lib_get_port(struct sock *sk, unsigned short snum,
return error; return error;
} }
__inline__ int udp_get_port(struct sock *sk, unsigned short snum, int udp_get_port(struct sock *sk, unsigned short snum,
int (*scmp)(const struct sock *, const struct sock *)) int (*scmp)(const struct sock *, const struct sock *))
{ {
return __udp_lib_get_port(sk, snum, udp_hash, &udp_port_rover, scmp); return __udp_lib_get_port(sk, snum, udp_hash, &udp_port_rover, scmp);
} }
inline int ipv4_rcv_saddr_equal(const struct sock *sk1, const struct sock *sk2) int ipv4_rcv_saddr_equal(const struct sock *sk1, const struct sock *sk2)
{ {
struct inet_sock *inet1 = inet_sk(sk1), *inet2 = inet_sk(sk2); struct inet_sock *inet1 = inet_sk(sk1), *inet2 = inet_sk(sk2);
...@@ -391,7 +391,7 @@ void __udp4_lib_err(struct sk_buff *skb, u32 info, struct hlist_head udptable[]) ...@@ -391,7 +391,7 @@ void __udp4_lib_err(struct sk_buff *skb, u32 info, struct hlist_head udptable[])
sock_put(sk); sock_put(sk);
} }
__inline__ void udp_err(struct sk_buff *skb, u32 info) void udp_err(struct sk_buff *skb, u32 info)
{ {
return __udp4_lib_err(skb, info, udp_hash); return __udp4_lib_err(skb, info, udp_hash);
} }
...@@ -1296,7 +1296,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[], ...@@ -1296,7 +1296,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[],
return 0; return 0;
} }
__inline__ int udp_rcv(struct sk_buff *skb) int udp_rcv(struct sk_buff *skb)
{ {
return __udp4_lib_rcv(skb, udp_hash, IPPROTO_UDP); return __udp4_lib_rcv(skb, udp_hash, IPPROTO_UDP);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment