datapath: Fix sparse warning on BUILD_BUG_ON_INVALID()
authorAndy Zhou <azhou@nicira.com>
Sat, 21 Dec 2013 00:18:58 +0000 (16:18 -0800)
committerAndy Zhou <azhou@nicira.com>
Sat, 21 Dec 2013 01:58:34 +0000 (17:58 -0800)
commit7c359202cff3178e7ac22e29714c2983bb585076
tree3485e08a8db43908a1f137f96115503ca8c2e4c7
parent60d02c72941d5a4aeea85090f120a0cc03e945f2
datapath: Fix sparse warning on BUILD_BUG_ON_INVALID()

Sparse gives the following warnings when compile against Linux kernel
3.5:

 CHECK   /root/projs/ovs/openvswitch/datapath/linux/skbuff-openvswitch.c
 include/linux/mm.h:405:9: error: undefined identifier
 'BUILD_BUG_ON_INVALID'
 include/linux/mm.h:405:9: error: not a function <noident>

The same issue may also exist in kernel 3.6.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/linux/compat/include/linux/bug.h [new file with mode: 0644]