aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/af_inet6.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2006-09-01 03:29:06 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 18:18:15 -0400
commitef047f5e1085d6393748d1ee27d6327905f098dc (patch)
treeb1ac74cd97e5e39afedbecbffd8feaf59458d3d8 /net/ipv6/af_inet6.c
parent366e4adc0f9ef33f56c62f980a7d83775e64abd0 (diff)
[NET]: Use BUILD_BUG_ON() for checking size of skb->cb.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r--net/ipv6/af_inet6.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index fc9c8a99bea6..bf6e8aff19d4 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -761,6 +761,8 @@ static int __init inet6_init(void)
761 struct list_head *r; 761 struct list_head *r;
762 int err; 762 int err;
763 763
764 BUILD_BUG_ON(sizeof(struct inet6_skb_parm) > sizeof(dummy_skb->cb));
765
764#ifdef MODULE 766#ifdef MODULE
765#if 0 /* FIXME --RR */ 767#if 0 /* FIXME --RR */
766 if (!mod_member_present(&__this_module, can_unload)) 768 if (!mod_member_present(&__this_module, can_unload))
@@ -770,11 +772,6 @@ static int __init inet6_init(void)
770#endif 772#endif
771#endif 773#endif
772 774
773 if (sizeof(struct inet6_skb_parm) > sizeof(dummy_skb->cb)) {
774 printk(KERN_CRIT "inet6_proto_init: size fault\n");
775 return -EINVAL;
776 }
777
778 err = proto_register(&tcpv6_prot, 1); 775 err = proto_register(&tcpv6_prot, 1);
779 if (err) 776 if (err)
780 goto out; 777 goto out;