net/ipv4/ip_output.c: make ip_fragment() static
Subsystems (3)
RFC PATCH 1/1 net/ipv4/ip_output.c: make ip_fragment() static
Since there's no longer any external user of ip_fragment() we can make it static.
Signed-off-by Adrian Bunk <[email protected]>
---
include/net/ip.h | 1 - net/ipv4/ip_output.c | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-)
include/net/ip.h renamed from include/net/ip.h.old +0 -1
@@ -95,7 +95,6 @@extern int ip_mr_input (struct sk_buff *skb);extern int ip_output (struct sk_buff *skb);extern int ip_mc_output (struct sk_buff *skb); -extern int ip_fragment (struct sk_buff *skb,int (*out)(struct sk_buff *));extern int ip_do_nat (struct sk_buff *skb);extern void ip_send_check (struct iphdr *ip);extern int ip_queue_xmit (struct sk_buff *skb,int ipfragok);
net/ipv4/ip_output.c renamed from net/ipv4/ip_output.c.old +3 -2
@@ -85,6 +85,8 @@int sysctl_ip_default_ttl =IPDEFTTL ; +static int ip_fragment (struct sk_buff *skb,int (*output)(struct sk_buff *)); +/* Generate a checksum for an outgoing IP datagram. */ __inline__void ip_send_check (struct iphdr *iph) {
@@ -409,7 +411,7 @@* single device frame, and queue such a frame for sending. */ -int ip_fragment (struct sk_buff *skb,int (*output)(struct sk_buff *)) +static int ip_fragment (struct sk_buff *skb,int (*output)(struct sk_buff *)) {struct iphdr *iph;int raw =0 ;
@@ -1391,7 +1393,6 @@#endif } -EXPORT_SYMBOL (ip_fragment);EXPORT_SYMBOL (ip_generic_getfrag);EXPORT_SYMBOL (ip_queue_xmit);EXPORT_SYMBOL (ip_send_check);
David S. Miller
maintainerFrom: Adrian Bunk <[email protected]>
Date: Sat, 7 Jan 2006 19:15:33 +0100
Quoted 4 lines
Since there's no longer any external user of
ip_fragment()we can make it static.Signed-off-by Adrian Bunk <[email protected]>
Works for me, applied.
Thanks.