git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Avoid nla_parse_nested const warning on < 2.6.22.
[sliver-openvswitch.git]
/
datapath
/
linux-2.6
/
compat-2.6
/
include
/
net
/
netlink.h
diff --git
a/datapath/linux-2.6/compat-2.6/include/net/netlink.h
b/datapath/linux-2.6/compat-2.6/include/net/netlink.h
index
f4fb843
..
0f881f1
100644
(file)
--- a/
datapath/linux-2.6/compat-2.6/include/net/netlink.h
+++ b/
datapath/linux-2.6/compat-2.6/include/net/netlink.h
@@
-111,7
+111,10
@@
static inline int nla_type(const struct nlattr *nla)
}
#endif
}
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
+#define nla_parse_nested(tb, maxtype, nla, policy) \
+ nla_parse_nested(tb, maxtype, (struct nlattr *)(nla), (struct nla_policy *)(policy))
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
#define nla_parse_nested(tb, maxtype, nla, policy) \
nla_parse_nested(tb, maxtype, (struct nlattr *)(nla), policy)
#endif
#define nla_parse_nested(tb, maxtype, nla, policy) \
nla_parse_nested(tb, maxtype, (struct nlattr *)(nla), policy)
#endif