batman-adv: Keep batadv_netlink_notify_* static
authorSven Eckelmann <sven@narfation.org>
Wed, 2 Aug 2023 08:24:20 +0000 (10:24 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Mon, 14 Aug 2023 16:01:21 +0000 (18:01 +0200)
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 <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/netlink.c
net/batman-adv/netlink.h

index ad5714f737be275fa0394981b4a4bc072c861ebf..b6c512ce6704325bf2cbe60fa574d2e7f45b7e5a 100644 (file)
@@ -377,7 +377,7 @@ nla_put_failure:
  *
  * Return: 0 on success, < 0 on error
  */
-int batadv_netlink_notify_mesh(struct batadv_priv *bat_priv)
+static int batadv_netlink_notify_mesh(struct batadv_priv *bat_priv)
 {
        struct sk_buff *msg;
        int ret;
@@ -858,8 +858,8 @@ nla_put_failure:
  *
  * Return: 0 on success, < 0 on error
  */
-int batadv_netlink_notify_hardif(struct batadv_priv *bat_priv,
-                                struct batadv_hard_iface *hard_iface)
+static int batadv_netlink_notify_hardif(struct batadv_priv *bat_priv,
+                                       struct batadv_hard_iface *hard_iface)
 {
        struct sk_buff *msg;
        int ret;
@@ -1073,8 +1073,8 @@ nla_put_failure:
  *
  * Return: 0 on success, < 0 on error
  */
-int batadv_netlink_notify_vlan(struct batadv_priv *bat_priv,
-                              struct batadv_softif_vlan *vlan)
+static int batadv_netlink_notify_vlan(struct batadv_priv *bat_priv,
+                                     struct batadv_softif_vlan *vlan)
 {
        struct sk_buff *msg;
        int ret;
index 48102cc7490c7dbdd7330abfd7171baae3a46b99..876d2806a67d287f0abfa229a869646a5e39f6a2 100644 (file)
@@ -21,12 +21,6 @@ int batadv_netlink_tpmeter_notify(struct batadv_priv *bat_priv, const u8 *dst,
                                  u8 result, u32 test_time, u64 total_bytes,
                                  u32 cookie);
 
-int batadv_netlink_notify_mesh(struct batadv_priv *bat_priv);
-int batadv_netlink_notify_hardif(struct batadv_priv *bat_priv,
-                                struct batadv_hard_iface *hard_iface);
-int batadv_netlink_notify_vlan(struct batadv_priv *bat_priv,
-                              struct batadv_softif_vlan *vlan);
-
 extern struct genl_family batadv_netlink_family;
 
 #endif /* _NET_BATMAN_ADV_NETLINK_H_ */