[PATCH 8/8] nf_conntrack ipv6: unused code and sparse fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Comment out unused code, and include header so function prototypes are checked.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxx>


--- a/net/ipv6/netfilter/nf_conntrack_reasm.c	2008-01-23 14:19:41.000000000 -0800
+++ b/net/ipv6/netfilter/nf_conntrack_reasm.c	2008-01-23 14:23:39.000000000 -0800
@@ -42,6 +42,7 @@
 #include <linux/sysctl.h>
 #include <linux/netfilter.h>
 #include <linux/netfilter_ipv6.h>
+#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 
@@ -680,6 +681,7 @@ void nf_ct_frag6_output(unsigned int hoo
 	nf_conntrack_put_reasm(skb);
 }
 
+#ifdef notused
 int nf_ct_frag6_kfree_frags(struct sk_buff *skb)
 {
 	struct sk_buff *s, *s2;
@@ -694,6 +696,7 @@ int nf_ct_frag6_kfree_frags(struct sk_bu
 
 	return 0;
 }
+#endif
 
 int nf_ct_frag6_init(void)
 {

-- 
Stephen Hemminger <stephen.hemminger@xxxxxxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux