[B.A.T.M.A.N.] [PATCH 3/3] batman-adv: use fake functions instead of defines for not compiled-in routines

Antonio Quartulli
2012-04-24T08:47:10Z

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
distributed-arp-table.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/distributed-arp-table.c b/distributed-arp-table.c
index 3108cd3..6935be9 100644
--- a/distributed-arp-table.c
+++ b/distributed-arp-table.c
@@ -96,7 +96,10 @@ static void bat_dbg_arp(struct bat_priv *bat_priv, struct sk_buff *skb,

#else

-#define bat_dbg_arp(...)
+static void bat_dbg_arp(struct bat_priv *bat_priv, struct sk_buff *skb,
+ uint16_t type, int hdr_size, char *msg)
+{
+}

#endif /* CONFIG_BATMAN_ADV_DEBUG */

--
1.7.9.4