On Dienstag, 18. Oktober 2016 23:21:25 CEST Linus Lüssing wrote:
Substitutes the compat-patches approach for the netlink const changes to the prefered way of using compat-includes.
Signed-off-by: Linus Lüssing linus.luessing@c0d3.blue
compat-include/net/genetlink.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/compat-include/net/genetlink.h b/compat-include/net/genetlink.h index 72a8991..b195b47 100644 --- a/compat-include/net/genetlink.h +++ b/compat-include/net/genetlink.h @@ -28,6 +28,15 @@
#include <linux/export.h>
+/* multicast groups */ +enum __batadv_netlink_multicast_groups {
- __BATADV_NL_MCGRP_TPMETER,
+};
+static struct genl_multicast_group __batadv_netlink_mcgrps[] = {
- [__BATADV_NL_MCGRP_TPMETER] = { .name = BATADV_NL_MCAST_GROUP_TPMETER },
+};
Doesn't seem to scale. Especially when we think about batadv_netlink_ops which should also be const. It is currently not const because of the Linux <= 3.13 workaround.
Kind regards, Sven