summaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>2013-01-09 07:19:55 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-09 23:38:24 -0800
commit3523b29bd2cd58432ea1bf3629695ec1ab607722 (patch)
tree8df7b9a9e31a0fd245985cf7b65064cda7e2e165 /net/openvswitch
parentfab25745912a82baa7c9e73f59079108d56b5d26 (diff)
downloadop-kernel-dev-3523b29bd2cd58432ea1bf3629695ec1ab607722.zip
op-kernel-dev-3523b29bd2cd58432ea1bf3629695ec1ab607722.tar.gz
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')
-rw-r--r--net/openvswitch/datapath.c3
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");
OpenPOWER on IntegriCloud