]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV6]: Uninline netfilter okfns
authorPatrick McHardy <kaber@trash.net>
Mon, 15 Oct 2007 08:51:38 +0000 (01:51 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 15 Oct 2007 19:26:36 +0000 (12:26 -0700)
Uninline netfilter okfns for those cases where gcc can generate tail-calls.

Before:
   text    data     bss     dec     hex filename
8994153 1016524  524652 10535329         a0c1a1 vmlinux

After:
   text    data     bss     dec     hex filename
8992761 1016524  524652 10533937         a0bc31 vmlinux
-------------------------------------------------------
  -1392

All cases have been verified to generate tail-calls with and without netfilter.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_input.c
net/ipv6/ip6_output.c

index 9149fc239759972d9ddbde68330a9ca572f2569e..e7c85069a5db96fdf06b440443f20c698ceddf75 100644 (file)
@@ -149,7 +149,7 @@ out:
  */
 
 
-static inline int ip6_input_finish(struct sk_buff *skb)
+static int ip6_input_finish(struct sk_buff *skb)
 {
        struct inet6_protocol *ipprot;
        struct sock *raw_sk;
index 011082ed921a24c632d79c3790d7ead18408f05a..13565dfb1b4559ccb92dd5a5605e5d42f759959e 100644 (file)
@@ -70,7 +70,7 @@ static __inline__ void ipv6_select_ident(struct sk_buff *skb, struct frag_hdr *f
        spin_unlock_bh(&ip6_id_lock);
 }
 
-static inline int ip6_output_finish(struct sk_buff *skb)
+static int ip6_output_finish(struct sk_buff *skb)
 {
        struct dst_entry *dst = skb->dst;