From: YOSHIFUJI Hideaki / 吉藤英明 Date: Wed, 9 Jan 2013 07:20:01 +0000 (+0000) Subject: rxrpc: Use FIELD_SIZEOF() in af_rxrpc_init(). X-Git-Tag: v3.9-rc1~139^2~424 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce6654cfc12558cc65b198cca991684e58e10bc6;p=platform%2Fkernel%2Flinux-exynos.git rxrpc: Use FIELD_SIZEOF() in af_rxrpc_init(). Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 05996d0..5b0fd29 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include @@ -792,10 +793,9 @@ static const struct net_proto_family rxrpc_family_ops = { */ static int __init af_rxrpc_init(void) { - struct sk_buff *dummy_skb; int ret = -1; - BUILD_BUG_ON(sizeof(struct rxrpc_skb_priv) > sizeof(dummy_skb->cb)); + BUILD_BUG_ON(sizeof(struct rxrpc_skb_priv) > FIELD_SIZEOF(struct sk_buff, cb)); rxrpc_epoch = htonl(get_seconds());