summaryrefslogtreecommitdiffstats
path: root/net/ipv6/af_inet6.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>2013-01-09 07:19:43 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-09 23:38:23 -0800
commitba96bcbcd213e66306e8669e3442b0b3689dd768 (patch)
tree236caadb30c7d0c0778ebcbb1525b0fadab25c49 /net/ipv6/af_inet6.c
parent95c7e0e4d4792f9c9629ad759c9be047a3ddbcc5 (diff)
downloadop-kernel-dev-ba96bcbcd213e66306e8669e3442b0b3689dd768.zip
op-kernel-dev-ba96bcbcd213e66306e8669e3442b0b3689dd768.tar.gz
ipv6: Use FIELD_SIZEOF() in inet6_init().
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index b043c60..6b793bf 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -811,11 +811,10 @@ static struct pernet_operations inet6_net_ops = {
static int __init inet6_init(void)
{
- struct sk_buff *dummy_skb;
struct list_head *r;
int err = 0;
- BUILD_BUG_ON(sizeof(struct inet6_skb_parm) > sizeof(dummy_skb->cb));
+ BUILD_BUG_ON(sizeof(struct inet6_skb_parm) > FIELD_SIZEOF(struct sk_buff, cb));
/* Register the socket-side information for inet6_create. */
for (r = &inetsw6[0]; r < &inetsw6[SOCK_MAX]; ++r)
OpenPOWER on IntegriCloud