[PATCH 3/3] batman-adv: Drop per algo GW section class code

2023-08-02 Thread Sven Eckelmann
This code was only used in the past for the sysfs interface. But since this was replace with netlink, it was never executed. The function pointer was only checked to figure out whether the limit 255 (B.A.T.M.A.N. IV) or 2**32-1 (B.A.T.M.A.N. V) should be used as limit. So instead of keeping the

[PATCH 2/3] batman-adv: Keep batadv_netlink_notify_* static

2023-08-02 Thread Sven Eckelmann
The batadv_netlink_notify_*() functions are not used by any other source file. Just keep them local to netlink.c to get informed by the compiler when they are not used anymore. Signed-off-by: Sven Eckelmann --- net/batman-adv/netlink.c | 10 +- net/batman-adv/netlink.h | 6 -- 2

[PATCH 1/3] batman-adv: Drop unused function batadv_gw_bandwidth_set

2023-08-02 Thread Sven Eckelmann
This function is no longer used since the sysfs support was removed from batman-adv. Signed-off-by: Sven Eckelmann --- net/batman-adv/gateway_common.c | 88 - net/batman-adv/gateway_common.h | 2 - 2 files changed, 90 deletions(-) diff --git

[PATCH 0/3] batman-adv: Drop ununused functions and localize when possible

2023-08-02 Thread Sven Eckelmann
+--- net/batman-adv/gateway_common.h | 7 -- net/batman-adv/netlink.c| 15 ++-- net/batman-adv/netlink.h| 6 -- net/batman-adv/types.h | 7 +- 7 files changed, 13 insertions(+), 208 deletions(-) --- base-commit: ed12d0c16556942c4fd52af122030182c11e60ef change-id: 20230802