From: YOSHIFUJI Hideaki / 吉藤英明 Date: Wed, 9 Jan 2013 07:20:07 +0000 (+0000) Subject: unix: Use FIELD_SIZEOF() in af_unix_init(). X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b4fff5f8bf32766ecaa4af6d5c7ef7f0ffb88ed2;p=linux-beck.git unix: Use FIELD_SIZEOF() in af_unix_init(). Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 5b5c876c80e9..0c612361c153 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -2426,9 +2426,8 @@ static struct pernet_operations unix_net_ops = { static int __init af_unix_init(void) { int rc = -1; - struct sk_buff *dummy_skb; - BUILD_BUG_ON(sizeof(struct unix_skb_parms) > sizeof(dummy_skb->cb)); + BUILD_BUG_ON(sizeof(struct unix_skb_parms) > FIELD_SIZEOF(struct sk_buff, cb)); rc = proto_register(&unix_proto, 1); if (rc != 0) {