datapath: Avoid nla_parse_nested const warning on < 2.6.22.
authorJesse Gross <jesse@nicira.com>
Mon, 31 Jan 2011 00:01:56 +0000 (16:01 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 31 Jan 2011 06:16:37 +0000 (22:16 -0800)
commit3569d18f47f49c115d80033a3661ad31c13d06c9
treeacb71438f66a6080db7886128786f44e8ad87754
parentc18ea70d06e980dc768166881c5aeac0b3491561
datapath: Avoid nla_parse_nested const warning on < 2.6.22.

We mark our Netlink policies as const for safety but the argument
to nla_parse_nested didn't become const until 2.6.22, which provokes
warnings.  This casts away the constness on affected kernels to
avoid the warnings.

Reported-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/linux-2.6/compat-2.6/include/net/netlink.h