From patchwork Mon Feb 6 22:11:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 1503 Return-Path: Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id 2CA516008CE for ; Mon, 6 Feb 2012 23:12:01 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@narfation.org; dkim-adsp=pass Received: from sven-desktop.home.narfation.org (p57AA1674.dip0.t-ipconnect.de [87.170.22.116]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 0BFB2940AD; Mon, 6 Feb 2012 23:14:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=mail; t=1328566452; bh=PEwa6N2z48umJuUc69H0uSqEca0K/uE0tDrBV/Ns8cY=; h=From:To:Cc:Subject:Date:Message-Id; b=fcaVEJKxr/jUE0wAb5bjIap4VhNmZxN1RnpsMM7qwTr875SEbF6Xeg1JJmc+wLuR7 0q7tSQ6X7ncmgwCdYsVsNz5xCsP86UjM4etPqUxGNZBFAMnGvHI7GpFYbzC+JIK5yy R/lXbqisKFWAHbuZoPmcXEsqeobNajv/Ws1KQYuE= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Mon, 6 Feb 2012 23:11:53 +0100 Message-Id: <1328566314-16721-1-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.7.8.3 Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: Remove declaration of only locally used functions X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 22:12:01 -0000 The blaII code removed references to two functions outside of the own source file. route_unicast_packet can be marked as static since 9c11509d3bbf914060be1bcb4448ea69d571fcb9 and tt_global_del since 7c5289cb52a5cecaeeddc719cd52b50bb17263dd Signed-off-by: Sven Eckelmann --- routing.c | 5 ++++- routing.h | 1 - translation-table.c | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/routing.c b/routing.c index 4a0e265..7b7fcbe 100644 --- a/routing.c +++ b/routing.c @@ -31,6 +31,9 @@ #include "unicast.h" #include "bridge_loop_avoidance.h" +static int route_unicast_packet(struct sk_buff *skb, + struct hard_iface *recv_if); + void slide_own_bcast_window(struct hard_iface *hard_iface) { struct bat_priv *bat_priv = netdev_priv(hard_iface->soft_iface); @@ -806,7 +809,7 @@ static int check_unicast_packet(struct sk_buff *skb, int hdr_size) return 0; } -int route_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if) +static int route_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if) { struct bat_priv *bat_priv = netdev_priv(recv_if->soft_iface); struct orig_node *orig_node = NULL; diff --git a/routing.h b/routing.h index 92ac100..3d729cb 100644 --- a/routing.h +++ b/routing.h @@ -25,7 +25,6 @@ void slide_own_bcast_window(struct hard_iface *hard_iface); void update_route(struct bat_priv *bat_priv, struct orig_node *orig_node, struct neigh_node *neigh_node); -int route_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if); int recv_icmp_packet(struct sk_buff *skb, struct hard_iface *recv_if); int recv_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if); int recv_ucast_frag_packet(struct sk_buff *skb, struct hard_iface *recv_if); diff --git a/translation-table.c b/translation-table.c index 295d4b3..9a07882 100644 --- a/translation-table.c +++ b/translation-table.c @@ -816,9 +816,10 @@ static void tt_global_del_roaming(struct bat_priv *bat_priv, -void tt_global_del(struct bat_priv *bat_priv, - struct orig_node *orig_node, const unsigned char *addr, - const char *message, bool roaming) +static void tt_global_del(struct bat_priv *bat_priv, + struct orig_node *orig_node, + const unsigned char *addr, + const char *message, bool roaming) { struct tt_global_entry *tt_global_entry = NULL; struct tt_local_entry *tt_local_entry = NULL;