diff options
author | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> | 2013-01-09 07:19:55 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-10 07:38:24 (GMT) |
commit | 3523b29bd2cd58432ea1bf3629695ec1ab607722 (patch) | |
tree | 8df7b9a9e31a0fd245985cf7b65064cda7e2e165 /net/openvswitch/datapath.c | |
parent | fab25745912a82baa7c9e73f59079108d56b5d26 (diff) | |
download | linux-3523b29bd2cd58432ea1bf3629695ec1ab607722.tar.xz |
openvswitch: Use FIELD_SIZEOF() in dp_init().
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r-- | net/openvswitch/datapath.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index f996db3..d8c13a9 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -1989,10 +1989,9 @@ static struct pernet_operations ovs_net_ops = { static int __init dp_init(void) { - struct sk_buff *dummy_skb; int err; - BUILD_BUG_ON(sizeof(struct ovs_skb_cb) > sizeof(dummy_skb->cb)); + BUILD_BUG_ON(sizeof(struct ovs_skb_cb) > FIELD_SIZEOF(struct sk_buff, cb)); pr_info("Open vSwitch switching datapath\n"); |