diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-03-08 23:46:41 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:24:15 -0400 |
commit | 3fbe070a4293e8ab2d2edb1bc23f1e5220ce61af (patch) | |
tree | 5d2d86c0b5ab1433a3e233a020dd13965531d249 /net/ipv4/udp.c | |
parent | 6f05f629716a71d4c9c82813f45d3e9a6e90d146 (diff) |
[UDP]: deinline
A couple of functions are exported or used indirectly
so it is pointless to mark them as inline.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 21901d2c5324..ca353802ca68 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -213,13 +213,13 @@ fail: | |||
213 | return error; | 213 | return error; |
214 | } | 214 | } |
215 | 215 | ||
216 | __inline__ int udp_get_port(struct sock *sk, unsigned short snum, | 216 | int udp_get_port(struct sock *sk, unsigned short snum, |
217 | int (*scmp)(const struct sock *, const struct sock *)) | 217 | int (*scmp)(const struct sock *, const struct sock *)) |
218 | { | 218 | { |
219 | return __udp_lib_get_port(sk, snum, udp_hash, &udp_port_rover, scmp); | 219 | return __udp_lib_get_port(sk, snum, udp_hash, &udp_port_rover, scmp); |
220 | } | 220 | } |
221 | 221 | ||
222 | inline int ipv4_rcv_saddr_equal(const struct sock *sk1, const struct sock *sk2) | 222 | int ipv4_rcv_saddr_equal(const struct sock *sk1, const struct sock *sk2) |
223 | { | 223 | { |
224 | struct inet_sock *inet1 = inet_sk(sk1), *inet2 = inet_sk(sk2); | 224 | struct inet_sock *inet1 = inet_sk(sk1), *inet2 = inet_sk(sk2); |
225 | 225 | ||
@@ -391,7 +391,7 @@ out: | |||
391 | sock_put(sk); | 391 | sock_put(sk); |
392 | } | 392 | } |
393 | 393 | ||
394 | __inline__ void udp_err(struct sk_buff *skb, u32 info) | 394 | void udp_err(struct sk_buff *skb, u32 info) |
395 | { | 395 | { |
396 | return __udp4_lib_err(skb, info, udp_hash); | 396 | return __udp4_lib_err(skb, info, udp_hash); |
397 | } | 397 | } |
@@ -1296,7 +1296,7 @@ drop: | |||
1296 | return 0; | 1296 | return 0; |
1297 | } | 1297 | } |
1298 | 1298 | ||
1299 | __inline__ int udp_rcv(struct sk_buff *skb) | 1299 | int udp_rcv(struct sk_buff *skb) |
1300 | { | 1300 | { |
1301 | return __udp4_lib_rcv(skb, udp_hash, IPPROTO_UDP); | 1301 | return __udp4_lib_rcv(skb, udp_hash, IPPROTO_UDP); |
1302 | } | 1302 | } |