Skip to contentSkip to conversation

batman-adv: remove unused debug log setup declarations

PATCH New Sven Eckelmann 1 participant 1 message Nov 28 Batman advanced

lore
Share & tools
lore

Sven Eckelmann

author maintainer
#0 lore raw

PATCH 1/1 batman-adv: remove unused debug log setup declarations

The commit 2048931015ae ("batman-adv: Drop deprecated debugfs support") removed batadv_debug_log_setup() and batadv_debug_log_cleanup(). Their declarations and the inline stubs for !CONFIG_BATMAN_ADV_DEBUG were kept in log.h. Nothing uses them anymore. Remove them.

---
 net/batman-adv/log.h | 18 ------------------
 1 file changed, 18 deletions(-)
net/batman-adv/log.h +0 -18
index 9f3aed82..03a48d9e 100644
@@ -14,24 +14,6 @@
 #include <linux/compiler.h>
 #include <linux/printk.h>
 
-#ifdef CONFIG_BATMAN_ADV_DEBUG
-
-int batadv_debug_log_setup(struct batadv_priv *bat_priv);
-void batadv_debug_log_cleanup(struct batadv_priv *bat_priv);
-
-#else
-
-static inline int batadv_debug_log_setup(struct batadv_priv *bat_priv)
-{
-	return 0;
-}
-
-static inline void batadv_debug_log_cleanup(struct batadv_priv *bat_priv)
-{
-}
-
-#endif
-
 /**
  * enum batadv_dbg_level - available log levels
  */

---
base-commit: 11431b38d0cd787a2e988416e7086dc1cf225055
change-id: 20261128-unused-log-helper-cffa225606f8

Best regards,

Signature · 1 line
Sven Eckelmann <[email protected]>