Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
>---------------------------------------------------------------
commit 1d30dbe3917d0d6fdb8ba473dfdd6265ac46670b
Author: Sven Eckelmann <sven(a)narfation.org>
Date: Sun May 5 19:43:31 2019 +0200
batman-adv: compat: Drop support for genl_ops->start
The start callback was first added with Linux 4.5. Older kernels have no
equivalent to start a dump and thus we cannot easily backport this feature.
To solve the compile problem on older kernels, just drop this for now.
Fixes: 2ee47abaeb35 ("batman-adv: genetlink: optionally validate strictly/dumps")
Signed-off-by: Sven Eckelmann <sven(a)narfation.org>
>---------------------------------------------------------------
1d30dbe3917d0d6fdb8ba473dfdd6265ac46670b
compat-include/net/genetlink.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/compat-include/net/genetlink.h b/compat-include/net/genetlink.h
index fbfdb733..ee5b8228 100644
--- a/compat-include/net/genetlink.h
+++ b/compat-include/net/genetlink.h
@@ -42,7 +42,6 @@ enum genl_validate_flags {
struct batadv_genl_ops {
int (*doit)(struct sk_buff *skb,
struct genl_info *info);
- int (*start)(struct netlink_callback *cb);
int (*dumpit)(struct sk_buff *skb,
struct netlink_callback *cb);
int (*done)(struct netlink_callback *cb);
@@ -105,7 +104,6 @@ static inline int batadv_genl_register_family(struct batadv_genl_family *family)
for (i = 0; i < family->family.n_ops; i++) {
ops[i].doit = family->ops[i].doit;
- ops[i].start = family->ops[i].start;
ops[i].dumpit = family->ops[i].dumpit;
ops[i].done = family->ops[i].done;
ops[i].cmd = family->ops[i].cmd;