aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-02-05 12:55:22 -0500
committerAntonio Quartulli <ordex@autistici.org>2012-04-11 08:28:58 -0400
commitde7aae6570412a22fd8854d62dc73c8afe508253 (patch)
tree6aebba0bdf1a74af2189577729cdb3a1243950f5 /net/batman-adv
parent0079d2cef1514422668c7beedd61bfde5aa2c146 (diff)
batman-adv: Remove declaration of only locally used functions
Signed-off-by: Sven Eckelmann <sven@narfation.org> Acked-by: Antonio Quartulli <ordex@autistici.org> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/translation-table.c22
-rw-r--r--net/batman-adv/translation-table.h8
2 files changed, 14 insertions, 16 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index 1f8692127840..5f8c540b9f17 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -30,6 +30,8 @@
30 30
31#include <linux/crc16.h> 31#include <linux/crc16.h>
32 32
33static void send_roam_adv(struct bat_priv *bat_priv, uint8_t *client,
34 struct orig_node *orig_node);
33static void _tt_global_del(struct bat_priv *bat_priv, 35static void _tt_global_del(struct bat_priv *bat_priv,
34 struct tt_global_entry *tt_global_entry, 36 struct tt_global_entry *tt_global_entry,
35 const char *message); 37 const char *message);
@@ -645,9 +647,10 @@ out:
645 tt_global_entry_free_ref(tt_global_entry); 647 tt_global_entry_free_ref(tt_global_entry);
646} 648}
647 649
648void tt_global_del(struct bat_priv *bat_priv, 650static void tt_global_del(struct bat_priv *bat_priv,
649 struct orig_node *orig_node, const unsigned char *addr, 651 struct orig_node *orig_node,
650 const char *message, bool roaming) 652 const unsigned char *addr,
653 const char *message, bool roaming)
651{ 654{
652 struct tt_global_entry *tt_global_entry = NULL; 655 struct tt_global_entry *tt_global_entry = NULL;
653 struct tt_local_entry *tt_local_entry = NULL; 656 struct tt_local_entry *tt_local_entry = NULL;
@@ -848,7 +851,8 @@ out:
848} 851}
849 852
850/* Calculates the checksum of the local table of a given orig_node */ 853/* Calculates the checksum of the local table of a given orig_node */
851uint16_t tt_global_crc(struct bat_priv *bat_priv, struct orig_node *orig_node) 854static uint16_t tt_global_crc(struct bat_priv *bat_priv,
855 struct orig_node *orig_node)
852{ 856{
853 uint16_t total = 0, total_one; 857 uint16_t total = 0, total_one;
854 struct hashtable_t *hash = bat_priv->tt_global_hash; 858 struct hashtable_t *hash = bat_priv->tt_global_hash;
@@ -936,8 +940,10 @@ static void tt_req_list_free(struct bat_priv *bat_priv)
936 spin_unlock_bh(&bat_priv->tt_req_list_lock); 940 spin_unlock_bh(&bat_priv->tt_req_list_lock);
937} 941}
938 942
939void tt_save_orig_buffer(struct bat_priv *bat_priv, struct orig_node *orig_node, 943static void tt_save_orig_buffer(struct bat_priv *bat_priv,
940 const unsigned char *tt_buff, uint8_t tt_num_changes) 944 struct orig_node *orig_node,
945 const unsigned char *tt_buff,
946 uint8_t tt_num_changes)
941{ 947{
942 uint16_t tt_buff_len = tt_len(tt_num_changes); 948 uint16_t tt_buff_len = tt_len(tt_num_changes);
943 949
@@ -1627,8 +1633,8 @@ unlock:
1627 return ret; 1633 return ret;
1628} 1634}
1629 1635
1630void send_roam_adv(struct bat_priv *bat_priv, uint8_t *client, 1636static void send_roam_adv(struct bat_priv *bat_priv, uint8_t *client,
1631 struct orig_node *orig_node) 1637 struct orig_node *orig_node)
1632{ 1638{
1633 struct neigh_node *neigh_node = NULL; 1639 struct neigh_node *neigh_node = NULL;
1634 struct sk_buff *skb = NULL; 1640 struct sk_buff *skb = NULL;
diff --git a/net/batman-adv/translation-table.h b/net/batman-adv/translation-table.h
index c753633b1da1..bfebe26edd8e 100644
--- a/net/batman-adv/translation-table.h
+++ b/net/batman-adv/translation-table.h
@@ -39,23 +39,15 @@ int tt_global_add(struct bat_priv *bat_priv, struct orig_node *orig_node,
39int tt_global_seq_print_text(struct seq_file *seq, void *offset); 39int tt_global_seq_print_text(struct seq_file *seq, void *offset);
40void tt_global_del_orig(struct bat_priv *bat_priv, 40void tt_global_del_orig(struct bat_priv *bat_priv,
41 struct orig_node *orig_node, const char *message); 41 struct orig_node *orig_node, const char *message);
42void tt_global_del(struct bat_priv *bat_priv,
43 struct orig_node *orig_node, const unsigned char *addr,
44 const char *message, bool roaming);
45struct orig_node *transtable_search(struct bat_priv *bat_priv, 42struct orig_node *transtable_search(struct bat_priv *bat_priv,
46 const uint8_t *src, const uint8_t *addr); 43 const uint8_t *src, const uint8_t *addr);
47void tt_save_orig_buffer(struct bat_priv *bat_priv, struct orig_node *orig_node,
48 const unsigned char *tt_buff, uint8_t tt_num_changes);
49uint16_t tt_local_crc(struct bat_priv *bat_priv); 44uint16_t tt_local_crc(struct bat_priv *bat_priv);
50uint16_t tt_global_crc(struct bat_priv *bat_priv, struct orig_node *orig_node);
51void tt_free(struct bat_priv *bat_priv); 45void tt_free(struct bat_priv *bat_priv);
52bool send_tt_response(struct bat_priv *bat_priv, 46bool send_tt_response(struct bat_priv *bat_priv,
53 struct tt_query_packet *tt_request); 47 struct tt_query_packet *tt_request);
54bool is_my_client(struct bat_priv *bat_priv, const uint8_t *addr); 48bool is_my_client(struct bat_priv *bat_priv, const uint8_t *addr);
55void handle_tt_response(struct bat_priv *bat_priv, 49void handle_tt_response(struct bat_priv *bat_priv,
56 struct tt_query_packet *tt_response); 50 struct tt_query_packet *tt_response);
57void send_roam_adv(struct bat_priv *bat_priv, uint8_t *client,
58 struct orig_node *orig_node);
59void tt_commit_changes(struct bat_priv *bat_priv); 51void tt_commit_changes(struct bat_priv *bat_priv);
60bool is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src, uint8_t *dst); 52bool is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src, uint8_t *dst);
61void tt_update_orig(struct bat_priv *bat_priv, struct orig_node *orig_node, 53void tt_update_orig(struct bat_priv *bat_priv, struct orig_node *orig_node,