* [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: make tt_global_add static
@ 2013-05-05 12:37 Antonio Quartulli
2013-05-05 12:37 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: remove batadv_tt_global_add_orig declaration Antonio Quartulli
0 siblings, 1 reply; 3+ messages in thread
From: Antonio Quartulli @ 2013-05-05 12:37 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
batadv_tt_global_add is not used anymore outside of the TT
code thanks to the TVLV implementation. It can therefore be
declared as static
Last user has been removed by 3de4e64df0f1326db7cc0ef25f5af8522850252d
("batman-adv: tvlv - convert roaming adv packet to use tvlv unicast packets")
Reported-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
translation-table.c | 8 ++++----
translation-table.h | 4 ----
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/translation-table.c b/translation-table.c
index 48e1ca9..9576d7a 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -806,10 +806,10 @@ out:
*
* The caller must hold orig_node refcount.
*/
-int batadv_tt_global_add(struct batadv_priv *bat_priv,
- struct batadv_orig_node *orig_node,
- const unsigned char *tt_addr, uint16_t flags,
- uint8_t ttvn)
+static int batadv_tt_global_add(struct batadv_priv *bat_priv,
+ struct batadv_orig_node *orig_node,
+ const unsigned char *tt_addr, uint16_t flags,
+ uint8_t ttvn)
{
struct batadv_tt_global_entry *tt_global_entry;
struct batadv_tt_local_entry *tt_local_entry;
diff --git a/translation-table.h b/translation-table.h
index b4b6dea..fb710c5 100644
--- a/translation-table.h
+++ b/translation-table.h
@@ -30,10 +30,6 @@ int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset);
void batadv_tt_global_add_orig(struct batadv_priv *bat_priv,
struct batadv_orig_node *orig_node,
const unsigned char *tt_buff, int tt_buff_len);
-int batadv_tt_global_add(struct batadv_priv *bat_priv,
- struct batadv_orig_node *orig_node,
- const unsigned char *addr, uint16_t flags,
- uint8_t ttvn);
int batadv_tt_global_seq_print_text(struct seq_file *seq, void *offset);
void batadv_tt_global_del_orig(struct batadv_priv *bat_priv,
struct batadv_orig_node *orig_node,
--
1.8.1.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: remove batadv_tt_global_add_orig declaration
2013-05-05 12:37 [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: make tt_global_add static Antonio Quartulli
@ 2013-05-05 12:37 ` Antonio Quartulli
2013-05-06 3:24 ` Marek Lindner
0 siblings, 1 reply; 3+ messages in thread
From: Antonio Quartulli @ 2013-05-05 12:37 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
batadv_tt_global_add_orig is neither used nor implemented
anymore, therefore it is possible to remove its declaration
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
translation-table.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/translation-table.h b/translation-table.h
index fb710c5..015d8b9 100644
--- a/translation-table.h
+++ b/translation-table.h
@@ -27,9 +27,6 @@ uint16_t batadv_tt_local_remove(struct batadv_priv *bat_priv,
const uint8_t *addr, const char *message,
bool roaming);
int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset);
-void batadv_tt_global_add_orig(struct batadv_priv *bat_priv,
- struct batadv_orig_node *orig_node,
- const unsigned char *tt_buff, int tt_buff_len);
int batadv_tt_global_seq_print_text(struct seq_file *seq, void *offset);
void batadv_tt_global_del_orig(struct batadv_priv *bat_priv,
struct batadv_orig_node *orig_node,
--
1.8.1.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: remove batadv_tt_global_add_orig declaration
2013-05-05 12:37 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: remove batadv_tt_global_add_orig declaration Antonio Quartulli
@ 2013-05-06 3:24 ` Marek Lindner
0 siblings, 0 replies; 3+ messages in thread
From: Marek Lindner @ 2013-05-06 3:24 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
On Sunday, May 05, 2013 20:37:56 Antonio Quartulli wrote:
> batadv_tt_global_add_orig is neither used nor implemented
> anymore, therefore it is possible to remove its declaration
>
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
> translation-table.h | 3 ---
> 1 file changed, 3 deletions(-)
Applied in revision 469d4b4.
Thanks,
Marek
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-06 3:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-05 12:37 [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: make tt_global_add static Antonio Quartulli
2013-05-05 12:37 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: remove batadv_tt_global_add_orig declaration Antonio Quartulli
2013-05-06 3:24 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox